projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aaed61d
)
gtk-demo: Plug another leak
author
Matthias Clasen
<mclasen@redhat.com>
Thu, 21 May 2020 19:41:00 +0000
(15:41 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Thu, 21 May 2020 19:41:54 +0000
(15:41 -0400)
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
patch
|
blob
|
history
diff --git
a/demos/gtk-demo/cursors.c
b/demos/gtk-demo/cursors.c
index 78bd12f8b81c8f0ba061d4bb00f78a894831cb16..875179ddcb01ff0ddf16a84028908780c62e386c 100644
(file)
--- 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))