diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-03-23 08:16:57 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-03-23 08:16:57 +0000 |
commit | bfc027ac6d05f489d0d26110c225d2871be0971c (patch) | |
tree | 418a51bdee3aff6ceed073c19023f27283e4a99c /test/clip-image.c | |
parent | e214f09d633093ce9b2ca0bffce10bc68a6e30b0 (diff) |
test/clip-image: Free image after use.
Diffstat (limited to 'test/clip-image.c')
-rw-r--r-- | test/clip-image.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/clip-image.c b/test/clip-image.c index e3c88095..68ed142d 100644 --- a/test/clip-image.c +++ b/test/clip-image.c @@ -41,6 +41,7 @@ draw (cairo_t *cr, int width, int height) image = cairo_test_create_surface_from_png (ctx, png_filename); cairo_set_source_surface (cr, image, 0, 0); + cairo_surface_destroy (image); /* simple clip */ cairo_save (cr); |