[cairo-commit] libsvg-cairo/src svg_cairo.c,1.26,1.27

Carl Worth commit at pdx.freedesktop.org
Tue May 4 12:02:16 PDT 2004


Committed by: cworth

Update of /cvs/cairo/libsvg-cairo/src
In directory pdx:/tmp/cvs-serv4856/src

Modified Files:
	svg_cairo.c 
Log Message:

        * src/svg_cairo.c (_svg_cairo_set_gradient): Call
        cairo_pattern_destroy to avoid memory leak.


Index: svg_cairo.c
===================================================================
RCS file: /cvs/cairo/libsvg-cairo/src/svg_cairo.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -d -r1.26 -r1.27
*** a/svg_cairo.c	30 Apr 2004 05:31:24 -0000	1.26
--- b/svg_cairo.c	4 May 2004 19:02:13 -0000	1.27
***************
*** 595,598 ****
--- 595,600 ----
      
      cairo_set_pattern (svg_cairo->cr, pattern);
+     cairo_pattern_destroy (pattern);
+     pattern = NULL;
      
      return SVG_STATUS_SUCCESS;





More information about the cairo-commit mailing list