mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 05:01:09 +00:00
gsk: Plug a memory leak in mask node fallback
We were forgetting to free the mask pattern. Found by asan.
This commit is contained in:
parent
ef0d6c7290
commit
0ae541671d
@ -5703,6 +5703,8 @@ gsk_mask_node_draw (GskRenderNode *node,
|
|||||||
cairo_clip (cr);
|
cairo_clip (cr);
|
||||||
|
|
||||||
cairo_mask (cr, mask_pattern);
|
cairo_mask (cr, mask_pattern);
|
||||||
|
|
||||||
|
cairo_pattern_destroy (mask_pattern);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user