[test/a1-sample-image] Fix the memleak.

Destroy the surface after use.
This commit is contained in:
Chris Wilson 2008-01-29 08:52:28 +00:00
parent 5efc88e910
commit 53c1ed25ab

View file

@ -73,6 +73,8 @@ draw (cairo_t *cr, int width, int height)
cairo_paint (cr);
}
cairo_surface_destroy (surface);
return CAIRO_TEST_SUCCESS;
}