Patch memory leak of png_info object.

This commit is contained in:
Carl Worth 2005-07-14 11:24:56 +00:00
parent 574b702029
commit 513e9e6fe5
2 changed files with 6 additions and 1 deletions

View file

@ -1,5 +1,10 @@
2005-07-14 Carl Worth <cworth@cworth.org>
* src/cairo-png.c (read_png): Patch memory leak of png_info
object.
2005-07-14 Carl Worth <cworth@cworth.org>
* test/.cvsignore:
* test/Makefile.am:
* test/create-for-png-ref.png:

View file

@ -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;
}