[gtk+] gsk: Plug leak in GskRenderNode
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gsk: Plug leak in GskRenderNode
- Date: Tue, 18 Oct 2016 15:34:44 +0000 (UTC)
commit d3f88adab72c685ae66bc11aebb4b6c2ed248d0a
Author: Emmanuele Bassi <ebassi gnome org>
Date: Tue Oct 18 16:34:03 2016 +0100
gsk: Plug leak in GskRenderNode
We need to destroy the node's surface when finalizing it.
gsk/gskrendernode.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gsk/gskrendernode.c b/gsk/gskrendernode.c
index a1105e3..9006221 100644
--- a/gsk/gskrendernode.c
+++ b/gsk/gskrendernode.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]