mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-08 17:50:10 +00:00
gsk: Don't leak cairo nodes
Not chaining up in finalize is a leak, after all.
This commit is contained in:
parent
c13d70479b
commit
9e5ddeaa8a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user