[cairo-commit] cairo/src cairo-png.c,1.15,1.16

Carl Worth commit at pdx.freedesktop.org
Thu Jul 14 11:24:59 PDT 2005


Committed by: cworth

Update of /cvs/cairo/cairo/src
In directory gabe:/tmp/cvs-serv8854/src

Modified Files:
	cairo-png.c 
Log Message:

        * src/cairo-png.c (read_png): Patch memory leak of png_info
        object.


Index: cairo-png.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo-png.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- cairo-png.c	23 Jun 2005 19:58:50 -0000	1.15
+++ cairo-png.c	14 Jul 2005 18:24:56 -0000	1.16
@@ -408,7 +408,7 @@
  BAIL:
     free (row_pointers);
     free (data);
-    png_destroy_read_struct (&png, NULL, NULL);
+    png_destroy_read_struct (&png, &info, NULL);
 
     return surface;
 }




More information about the cairo-commit mailing list