forked from AuroraMiddleware/gtk
gsk: Plug leak in GskRenderNode
We need to destroy the node's surface when finalizing it.
This commit is contained in:
parent
976a4f6b12
commit
d3f88adab7
@ -146,6 +146,8 @@ gsk_render_node_finalize (GskRenderNode *self)
|
||||
|
||||
self->is_mutable = TRUE;
|
||||
|
||||
g_clear_pointer (&self->surface, cairo_surface_destroy);
|
||||
|
||||
gsk_render_node_iter_init (&iter, self);
|
||||
while (gsk_render_node_iter_next (&iter, NULL))
|
||||
gsk_render_node_iter_remove (&iter);
|
||||
|
Loading…
Reference in New Issue
Block a user