commit 6bf8ee5ad69837bb2109fb673479d06eb732b332
parent d8501da4900ecd17a2eb9c83685e1c2eac7bfde6
Author: sin <sin@2f30.org>
Date: Tue, 29 Jul 2014 12:49:21 +0100
Be consistent and free png data in png2if as well
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/png2if.c b/png2if.c
@@ -71,6 +71,7 @@ main(int argc, char *argv[])
}
/* clean up */
+ png_free_data(png_struct_p, png_info_p, PNG_FREE_ALL, -1);
png_destroy_read_struct(&png_struct_p, &png_info_p, NULL);
return EXIT_SUCCESS;
}