mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 09:58:12 +02:00
Destroy used pattern
This commit is contained in:
parent
d517773ff1
commit
3a06998b6a
1 changed files with 1 additions and 0 deletions
|
|
@ -38,6 +38,7 @@ draw (cairo_t *cr, int width, int height)
|
|||
cairo_set_source(cr, p);
|
||||
cairo_rectangle(cr, 0, 0, 100, 100);
|
||||
cairo_paint(cr);
|
||||
cairo_pattern_destroy(p);
|
||||
return CAIRO_TEST_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue