[cairo-commit] cairo/src cairo-gstate.c,1.186,1.187
Carl Worth
commit at pdx.freedesktop.org
Mon Nov 21 10:50:23 PST 2005
Committed by: cworth
Update of /cvs/cairo/cairo/src
In directory gabe:/tmp/cvs-serv13749/src
Modified Files:
cairo-gstate.c
Log Message:
2005-11-21 Carl Worth <cworth at cworth.org>
* ROADMAP: Add reminder to fix all memory leaks (as determined by
the test suite) before release 1.2.0.
* src/cairo-gstate.c: (_cairo_gstate_stroke),
(_cairo_gstate_fill): Patch leak of patterns as noted in bug #5100
(thanks to Richard Stellingwerff <remenic at gmail.com>).
Index: cairo-gstate.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo-gstate.c,v
retrieving revision 1.186
retrieving revision 1.187
diff -u -d -r1.186 -r1.187
--- cairo-gstate.c 7 Nov 2005 18:50:39 -0000 1.186
+++ cairo-gstate.c 21 Nov 2005 18:50:20 -0000 1.187
@@ -1190,6 +1190,8 @@
&gstate->ctm_inverse,
gstate->tolerance,
gstate->antialias);
+
+ _cairo_pattern_fini (&source_pattern.base);
return status;
@@ -1532,6 +1534,8 @@
gstate->fill_rule,
gstate->tolerance,
gstate->antialias);
+
+ _cairo_pattern_fini (&pattern.base);
return status;
}
More information about the cairo-commit
mailing list