From 3ab67d852bb54ba6e7dc373644ce82f82747228c Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 23 Sep 2023 07:47:09 -0400 Subject: [PATCH] gtk-demo: Fix a refcounting mishap gtk_font_dialog_button_new's argument is transfer full. Fixes: #6113 --- demos/gtk-demo/fishbowl.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/demos/gtk-demo/fishbowl.c b/demos/gtk-demo/fishbowl.c index a5d58787c1..0e365fb65a 100644 --- a/demos/gtk-demo/fishbowl.c +++ b/demos/gtk-demo/fishbowl.c @@ -71,14 +71,7 @@ create_blurred_button (void) static GtkWidget * create_font_button (void) { - GtkFontDialog *dialog; - GtkWidget *button; - - dialog = gtk_font_dialog_new (); - button = gtk_font_dialog_button_new (dialog); - g_object_unref (dialog); - - return button; + return gtk_font_dialog_button_new (gtk_font_dialog_new ()); } static GtkWidget * -- 2.30.2