diff --git a/ChangeLog b/ChangeLog index 03ca82a38..11de26953 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2005-07-14 Carl Worth + * src/cairo-png.c (read_png): Patch memory leak of png_info + object. + +2005-07-14 Carl Worth + * test/.cvsignore: * test/Makefile.am: * test/create-for-png-ref.png: diff --git a/src/cairo-png.c b/src/cairo-png.c index 1385bea04..532054e51 100644 --- a/src/cairo-png.c +++ b/src/cairo-png.c @@ -408,7 +408,7 @@ read_png (png_rw_ptr read_func, BAIL: free (row_pointers); free (data); - png_destroy_read_struct (&png, NULL, NULL); + png_destroy_read_struct (&png, &info, NULL); return surface; }