[libpng17] Changed tabs to 3 spaces in png_debug macros and changed '"%s"m'

to '"%s" m' to improve portability among compilers.
Changed png_free_default() to free() in pngtest.c
This commit is contained in:
Glenn Randers-Pehrson
2013-11-28 14:09:12 -06:00
parent a4f1de9109
commit 05f896004f
4 changed files with 22 additions and 17 deletions

View File

@@ -570,7 +570,8 @@ png_debug_free(png_structp png_ptr, png_voidp ptr)
/* We must free the list element too, but first kill
the memory that is to be freed. */
memset(ptr, 0x55, pinfo->size);
png_free_default(png_ptr, pinfo);
if (pinfo)
free(pinfo);
pinfo = NULL;
break;
}
@@ -589,7 +590,8 @@ png_debug_free(png_structp png_ptr, png_voidp ptr)
if (verbose)
printf("Freeing %p\n", ptr);
png_free_default(png_ptr, ptr);
if (ptr)
free(ptr);
ptr = NULL;
}
#endif /* PNG_USER_MEM_SUPPORTED && PNG_DEBUG */