[gtk/cairo-node-leak] gsk: Don't leak cairo nodes
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/cairo-node-leak] gsk: Don't leak cairo nodes
- Date: Thu, 6 Aug 2020 22:44:33 +0000 (UTC)
commit 9e5ddeaa8a510f1ab90356d97fac75338815b715
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Aug 6 18:26:42 2020 -0400
gsk: Don't leak cairo nodes
Not chaining up in finalize is a leak, after all.
gsk/gskrendernodeimpl.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/gsk/gskrendernodeimpl.c b/gsk/gskrendernodeimpl.c
index 3b99ade5d3..e8a1ad2a6e 100644
--- a/gsk/gskrendernodeimpl.c
+++ b/gsk/gskrendernodeimpl.c
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]