From: Matthias Clasen Date: Sat, 16 Apr 2011 17:42:24 +0000 (-0400) Subject: gtk-demo: Don't leave a dangling pointer to a destroyed widget X-Git-Url: http://pileus.org/git/?a=commitdiff_plain;h=c8c1075cfe7220be0b82b81358c3bb8bc375e11c;p=~andy%2Fgtk 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. --- 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; } }