From: Matthias Clasen Date: Thu, 21 May 2020 20:24:20 +0000 (-0400) Subject: gtk-demo: Plug another leak X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~16^2~132^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=96c0fbf20972d2128eb765cc9d429e6be572eea4;p=gtk4.git 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. --- 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))