[gtk+] window: Don't leak the GskRenderer
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] window: Don't leak the GskRenderer
- Date: Fri, 21 Oct 2016 12:31:33 +0000 (UTC)
commit ca305bb59694c2237ed069ce14c0779b992080ab
Author: Timm Bäder <mail baedert org>
Date: Fri Oct 21 10:12:40 2016 +0200
window: Don't leak the GskRenderer
gtk/gtkwindow.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index d0233ec..7499344 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -5680,6 +5680,8 @@ gtk_window_finalize (GObject *object)
if (priv->drag_gesture)
g_object_unref (priv->drag_gesture);
+ g_clear_object (&priv->renderer);
+
G_OBJECT_CLASS (gtk_window_parent_class)->finalize (object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]