[gtk/matthiasc/for-master: 6/9] gtk-demo: Plug another leak
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master: 6/9] gtk-demo: Plug another leak
- Date: Thu, 21 May 2020 20:26:33 +0000 (UTC)
commit 3f6dd34b18b21c08457bb466522d04347c48a55a
Author: Matthias Clasen <mclasen redhat com>
Date: Thu May 21 15:41:00 2020 -0400
gtk-demo: Plug another leak
We were leaking the builder in the cursors demo,
by creating a ref cycle. This was showing up as
the list entry not going back to upright after
closing the window.
demos/gtk-demo/cursors.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/demos/gtk-demo/cursors.c b/demos/gtk-demo/cursors.c
index 78bd12f8b8..875179ddcb 100644
--- a/demos/gtk-demo/cursors.c
+++ b/demos/gtk-demo/cursors.c
@@ -29,7 +29,7 @@ do_cursors (GtkWidget *do_widget)
gtk_widget_get_display (do_widget));
g_signal_connect (window, "destroy",
G_CALLBACK (on_destroy), NULL);
- g_object_set_data_full (G_OBJECT (window), "builder", builder, g_object_unref);
+ g_object_unref (builder);
}
if (!gtk_widget_get_visible (window))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]