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

@@ -40,7 +40,7 @@ ZLIB = /usr/local/lib/libz.a # statically linked against zlib
#XINC = -I/usr/include/X11 # old-style, stock X distributions
#XLIB = -L/usr/lib/X11 -lX11
#XINC = -I/usr/openwin/include/X11 # Sun workstations (OpenWindows)
#XINC = -I/usr/openwin/include # Sun workstations (OpenWindows)
#XLIB = -L/usr/openwin/lib -lX11
XINC = -I/usr/X11R6/include # new X distributions (XFree86, etc.)
XLIB = -L/usr/X11R6/lib -lX11

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