From c8c1075cfe7220be0b82b81358c3bb8bc375e11c Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 16 Apr 2011 13:42:24 -0400 Subject: [PATCH] gtk-demo: Don't leave a dangling pointer to a destroyed widget When destroying the assistant, clean up the static variable that points to it. --- demos/gtk-demo/assistant.c | 1 + 1 file changed, 1 insertion(+) diff --git a/demos/gtk-demo/assistant.c b/demos/gtk-demo/assistant.c index 232d345c0..059d88d5b 100644 --- a/demos/gtk-demo/assistant.c +++ b/demos/gtk-demo/assistant.c @@ -29,6 +29,7 @@ apply_changes_gradually (gpointer data) { /* Close automatically once changes are fully applied. */ gtk_widget_destroy (assistant); + assistant = NULL; return FALSE; } } -- 2.43.2