user-accounts: Destroy language chooser when switching panels
Otherwise we still have some left-over widgets being parented.
This commit is contained in:
parent
d3f604d06a
commit
03a31f0fe9
1 changed files with 4 additions and 0 deletions
|
@ -1259,6 +1259,10 @@ um_user_panel_dispose (GObject *object)
|
||||||
um_photo_dialog_free (priv->photo_dialog);
|
um_photo_dialog_free (priv->photo_dialog);
|
||||||
priv->photo_dialog = NULL;
|
priv->photo_dialog = NULL;
|
||||||
}
|
}
|
||||||
|
if (priv->language_chooser) {
|
||||||
|
gtk_widget_destroy (priv->language_chooser);
|
||||||
|
priv->language_chooser = NULL;
|
||||||
|
}
|
||||||
if (priv->login_options) {
|
if (priv->login_options) {
|
||||||
um_login_options_free (priv->login_options);
|
um_login_options_free (priv->login_options);
|
||||||
priv->login_options = NULL;
|
priv->login_options = NULL;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue