[gtk+] rendernode: Unref texture on finalize
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] rendernode: Unref texture on finalize
- Date: Tue, 15 Nov 2016 16:57:27 +0000 (UTC)
commit e253f408e39cd15c8fde0369e0b754158dc722cd
Author: Benjamin Otte <otte redhat com>
Date: Tue Nov 15 06:43:28 2016 +0100
rendernode: Unref texture on finalize
Leaking textures is no fun.
gsk/gskrendernode.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gsk/gskrendernode.c b/gsk/gskrendernode.c
index 888406d..7c463a6 100644
--- a/gsk/gskrendernode.c
+++ b/gsk/gskrendernode.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]