summaryrefslogtreecommitdiff
path: root/test/a1-image-sample.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2008-01-29 08:52:28 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2008-02-15 13:50:41 +0000
commit53c1ed25abb7e8e22b24aa64fcd29d210c6b7903 (patch)
treedd55f351e168dc7a84a0dbbef872f00a2696cce9 /test/a1-image-sample.c
parent5efc88e9108df2331772cc22dc52ef0a9cc93869 (diff)
downloadcairo-53c1ed25abb7e8e22b24aa64fcd29d210c6b7903.tar.gz
[test/a1-sample-image] Fix the memleak.
Destroy the surface after use.
Diffstat (limited to 'test/a1-image-sample.c')
-rw-r--r--test/a1-image-sample.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/a1-image-sample.c b/test/a1-image-sample.c
index 2dc4254ef..a95c57750 100644
--- a/test/a1-image-sample.c
+++ b/test/a1-image-sample.c
@@ -73,6 +73,8 @@ draw (cairo_t *cr, int width, int height)
cairo_paint (cr);
}
+ cairo_surface_destroy (surface);
+
return CAIRO_TEST_SUCCESS;
}