# HG changeset patch # User Radek Brich # Date 1197041982 -3600 # Node ID e9bb83c2b8b928a11da374647634d69b0e37d88f # Parent 9073320e9f4c3e98a4a70183bb0bea6c2b1a5f6d ccdemos/image.c: free png info structure diff -r 9073320e9f4c -r e9bb83c2b8b9 ccdemos/image.c --- a/ccdemos/image.c Fri Dec 07 14:59:14 2007 +0100 +++ b/ccdemos/image.c Fri Dec 07 16:39:42 2007 +0100 @@ -81,6 +81,7 @@ if (setjmp(png_jmpbuf(png))) { fclose(f); + png_destroy_info_struct(png, &pnginfo); png_destroy_write_struct(&png, &pnginfo); return (0); } @@ -106,6 +107,7 @@ /* ukoncit soubor a uvolnit pomocne struktury */ png_write_end(png, pnginfo); + png_destroy_info_struct(png, &pnginfo); png_destroy_write_struct(&png, 0); fclose(f);