gsk: Plug leak in GskRenderNode

We need to destroy the node's surface when finalizing it.
This commit is contained in:
Emmanuele Bassi 2016-10-18 16:34:03 +01:00
parent 976a4f6b12
commit d3f88adab7

View File

@ -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);