author | Radek Brich <radek.brich@devl.cz> |
Fri, 07 Dec 2007 16:39:42 +0100 | |
branch | pyrit |
changeset 27 | e9bb83c2b8b9 |
parent 26 | 9073320e9f4c |
child 28 | ffe83ca074f3 |
ccdemos/image.c | file | annotate | diff | comparison | revisions |
--- 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);