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:
parent
73bf1740e9
commit
c8c1075cfe
@ -29,6 +29,7 @@ apply_changes_gradually (gpointer data)
|
|||||||
{
|
{
|
||||||
/* Close automatically once changes are fully applied. */
|
/* Close automatically once changes are fully applied. */
|
||||||
gtk_widget_destroy (assistant);
|
gtk_widget_destroy (assistant);
|
||||||
|
assistant = NULL;
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user