Imported from libpng-1.2.27beta03.tar

This commit is contained in:
Glenn Randers-Pehrson
2008-04-14 09:26:03 -05:00
parent a1cd94bfbb
commit 7db798186c
52 changed files with 164 additions and 145 deletions

View File

@@ -1,7 +1,7 @@
/* pngmem.c - stub functions for memory allocation
*
* Last changed in libpng 1.2.26 [April 2, 2008]
* Last changed in libpng 1.2.27 [April 14, 2008]
* For conditions of distribution and use, see copyright notice in png.h
* Copyright (c) 1998-2008 Glenn Randers-Pehrson
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
@@ -293,7 +293,7 @@ png_free_default(png_structp png_ptr, png_voidp ptr)
{
#endif /* PNG_USER_MEM_SUPPORTED */
if(png_ptr == NULL) return;
if(png_ptr == NULL || ptr == NULL) return;
if (png_ptr->offset_table != NULL)
{