mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 18:08:03 +02:00
[test/a1-sample-image] Fix the memleak.
Destroy the surface after use.
This commit is contained in:
parent
5efc88e910
commit
53c1ed25ab
1 changed files with 2 additions and 0 deletions
|
|
@ -73,6 +73,8 @@ draw (cairo_t *cr, int width, int height)
|
|||
cairo_paint (cr);
|
||||
}
|
||||
|
||||
cairo_surface_destroy (surface);
|
||||
|
||||
return CAIRO_TEST_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue