summaryrefslogtreecommitdiff
path: root/test/subsurface-modify-parent.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-05-05 09:17:33 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2010-05-05 09:17:33 +0100
commit6a06e0ef7b534355d0f3b4885159ffc37dbc3867 (patch)
tree2dbf7ff41b3bc926f35f184ff858d884c7528447 /test/subsurface-modify-parent.c
parent4a46c715564c886e7434d65625fb84b5d87c0970 (diff)
test/subsurface-modify-parent: Free region.
Minor refleak.
Diffstat (limited to 'test/subsurface-modify-parent.c')
-rw-r--r--test/subsurface-modify-parent.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/subsurface-modify-parent.c b/test/subsurface-modify-parent.c
index 3dab2dd7..3d542d5c 100644
--- a/test/subsurface-modify-parent.c
+++ b/test/subsurface-modify-parent.c
@@ -59,6 +59,7 @@ draw (cairo_t *cr, int width, int height)
cairo_fill (cr);
cairo_set_source_surface (cr, region, 20, 20);
+ cairo_surface_destroy (region);
/* repeat the pattern around the outside, but do not overwrite...*/
cairo_pattern_set_extend (cairo_get_source (cr), CAIRO_EXTEND_REPEAT);