connection-editor: Unparent child widget on dispose
WirelessSecurityWPAEAP is a GtkWidget owned by the CEPage8021xSecurity widget, which is supposed to "unparent" it on "dispose" (since parents hold a reference to child widgets). Instead we were calling g_clear_object on it. Fixes #1671
This commit is contained in:
parent
946919c850
commit
f8a05fe2dc
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,7 @@ ce_page_8021x_security_dispose (GObject *object)
|
|||
CEPage8021xSecurity *self = CE_PAGE_8021X_SECURITY (object);
|
||||
|
||||
g_clear_object (&self->connection);
|
||||
g_clear_object (&self->security);
|
||||
g_clear_pointer ((GtkWidget **) &self->security, gtk_widget_unparent);
|
||||
g_clear_object (&self->group);
|
||||
|
||||
G_OBJECT_CLASS (ce_page_8021x_security_parent_class)->dispose (object);
|
||||
|
|
Loading…
Add table
Reference in a new issue