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.
This commit is contained in:
Matthias Clasen 2011-04-16 13:42:24 -04:00
parent 73bf1740e9
commit c8c1075cfe

View File

@ -29,6 +29,7 @@ apply_changes_gradually (gpointer data)
{
/* Close automatically once changes are fully applied. */
gtk_widget_destroy (assistant);
assistant = NULL;
return FALSE;
}
}