From 33928a52c3ec295211740e22970bfc7d68398633 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 4 Apr 2020 15:35:18 -0400 Subject: [PATCH] gtk-demo: Fix a crash Using the assistant demo repeatedly was crashing. --- demos/gtk-demo/assistant.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demos/gtk-demo/assistant.c b/demos/gtk-demo/assistant.c index cf4eee6609..b1c285f0e8 100644 --- a/demos/gtk-demo/assistant.c +++ b/demos/gtk-demo/assistant.c @@ -179,7 +179,7 @@ do_assistant (GtkWidget *do_widget) gtk_window_set_display (GTK_WINDOW (assistant), gtk_widget_get_display (do_widget)); g_signal_connect (assistant, "destroy", - G_CALLBACK (gtk_widget_destroyed), &window); + G_CALLBACK (gtk_widget_destroyed), &assistant); create_page1 (assistant); create_page2 (assistant);