[cairo-commit] cairo/test text-pattern.c,1.2,1.3

Carl Worth commit at pdx.freedesktop.org
Tue Aug 23 14:37:11 PDT 2005


Committed by: cworth

Update of /cvs/cairo/cairo/test
In directory gabe:/tmp/cvs-serv7706/test

Modified Files:
	text-pattern.c 
Log Message:

2005-08-23  Carl Worth  <cworth at cworth.org>

        * test/text-pattern.c: (draw): Fix memory leak of pattern.


Index: text-pattern.c
===================================================================
RCS file: /cvs/cairo/cairo/test/text-pattern.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- text-pattern.c	19 Aug 2005 00:19:54 -0000	1.2
+++ text-pattern.c	23 Aug 2005 21:37:09 -0000	1.3
@@ -67,6 +67,8 @@
   cairo_move_to (cr, 0.1, 0.6);
   cairo_show_text (cr, "cairo");
 
+  cairo_pattern_destroy (pat);
+
   return CAIRO_TEST_SUCCESS;
 }
 



More information about the cairo-commit mailing list