rendernode: Unref texture on finalize

Leaking textures is no fun.
This commit is contained in:
Benjamin Otte 2016-11-15 06:43:28 +01:00
parent 4b8b06bb08
commit e253f408e3

View File

@ -151,6 +151,7 @@ gsk_render_node_finalize (GskRenderNode *self)
self->is_mutable = TRUE;
g_clear_pointer (&self->surface, cairo_surface_destroy);
g_clear_pointer (&self->texture, gsk_texture_unref);
g_clear_pointer (&self->name, g_free);
gsk_render_node_iter_init (&iter, self);