Fix #1708 Delete missmatch for currupted pngs
This commit is contained in:
parent
f1383d1a93
commit
ac5db6f28e
@ -258,7 +258,7 @@ IImage* CImageLoaderPng::loadImage(io::IReadFile* file) const
|
|||||||
png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
|
png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
|
||||||
delete [] RowPointers;
|
delete [] RowPointers;
|
||||||
image->unlock();
|
image->unlock();
|
||||||
delete [] image;
|
delete image;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user