Fix #1708 Delete missmatch for currupted pngs

This commit is contained in:
Flakebi 2014-11-15 21:52:57 +01:00
parent f1383d1a93
commit ac5db6f28e

View File

@ -258,7 +258,7 @@ IImage* CImageLoaderPng::loadImage(io::IReadFile* file) const
png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
delete [] RowPointers;
image->unlock();
delete [] image;
delete image;
return 0;
}