mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-06 09:18:11 +02:00
Patch memory leak of png_info object.
This commit is contained in:
parent
574b702029
commit
513e9e6fe5
2 changed files with 6 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue