gsk: Don't leak cairo nodes

Not chaining up in finalize is a leak, after all.
This commit is contained in:
Matthias Clasen 2020-08-06 18:26:42 -04:00
parent c13d70479b
commit 9e5ddeaa8a

View File

@ -1660,9 +1660,12 @@ static void
gsk_cairo_node_finalize (GskRenderNode *node)
{
GskCairoNode *self = (GskCairoNode *) node;
GskRenderNodeClass *parent_class = g_type_class_peek (g_type_parent (GSK_TYPE_CAIRO_NODE));
if (self->surface)
cairo_surface_destroy (self->surface);
parent_class->finalize (node);
}
static void