diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2008-01-29 08:52:28 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2008-02-15 13:50:41 +0000 |
commit | 53c1ed25abb7e8e22b24aa64fcd29d210c6b7903 (patch) | |
tree | dd55f351e168dc7a84a0dbbef872f00a2696cce9 /test/a1-image-sample.c | |
parent | 5efc88e9108df2331772cc22dc52ef0a9cc93869 (diff) | |
download | cairo-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.c | 2 |
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; } |