Imported from libpng-1.0.7.tar

This commit is contained in:
Glenn Randers-Pehrson
2000-07-01 15:37:28 -05:00
parent 98b0ff4998
commit 3d5a520610
50 changed files with 227 additions and 156 deletions

View File

@@ -348,11 +348,7 @@ BOOL PngSaveImage (PTSTR pstrFileName, png_byte *pDiData,
// we can allocate memory for an array of row-pointers
if ((ppbRowPointers = (png_bytepp) malloc(iHeight * sizeof(png_bytep))) == NULL)
{
fclose(pfFile);
png_destroy_write_struct(&png_ptr, (png_infopp) NULL);
return FALSE;
}
Throw "Visualpng: Out of memory";
// set the individual row-pointers to point at the correct offsets