[cairo-commit] cairo/test surface-finish-twice.c,1.2,1.3

Carl Worth commit at pdx.freedesktop.org
Thu Jul 14 17:56:01 PDT 2005


Committed by: cworth

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

Modified Files:
	surface-finish-twice.c 
Log Message:

        * test/surface-finish-twice.c: (draw): Fix leak of surface.


Index: surface-finish-twice.c
===================================================================
RCS file: /cvs/cairo/cairo/test/surface-finish-twice.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- surface-finish-twice.c	13 Apr 2005 21:51:59 -0000	1.2
+++ surface-finish-twice.c	15 Jul 2005 00:55:59 -0000	1.3
@@ -63,6 +63,8 @@
     if (status != CAIRO_STATUS_SURFACE_FINISHED)
 	return CAIRO_TEST_FAILURE;
 
+    cairo_surface_destroy (surface);
+
     return CAIRO_TEST_SUCCESS;
 }
 




More information about the cairo-commit mailing list