Commit c8c1075c authored by Matthias Clasen's avatar Matthias Clasen
Browse files

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.
parent 73bf1740
......@@ -29,6 +29,7 @@ apply_changes_gradually (gpointer data)
{
/* Close automatically once changes are fully applied. */
gtk_widget_destroy (assistant);
assistant = NULL;
return FALSE;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment