summaryrefslogtreecommitdiff
path: root/demos/gtk-demo
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-05-21 16:24:20 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-05-21 16:24:20 -0400
commit96c0fbf20972d2128eb765cc9d429e6be572eea4 (patch)
treec371204c56b4e561658bf1a57d1e652bb2181aa6 /demos/gtk-demo
parent98178d8823562bec5291857b1b2a71c6dd1d3dda (diff)
downloadgtk+-96c0fbf20972d2128eb765cc9d429e6be572eea4.tar.gz
gtk-demo: Plug another leak
We were leaking the builder in the css blendmodes demo, by creating a ref cycle. This was showing up as the list entry not going back to upright after closing the window.
Diffstat (limited to 'demos/gtk-demo')
-rw-r--r--demos/gtk-demo/css_blendmodes.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/demos/gtk-demo/css_blendmodes.c b/demos/gtk-demo/css_blendmodes.c
index 3ddbbc0c37..df791aad31 100644
--- a/demos/gtk-demo/css_blendmodes.c
+++ b/demos/gtk-demo/css_blendmodes.c
@@ -134,6 +134,8 @@ do_css_blendmodes (GtkWidget *do_widget)
GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
setup_listbox (builder, provider);
+
+ g_object_unref (builder);
}
if (!gtk_widget_get_visible (window))