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:
Felipe Borges 2022-05-03 10:50:33 +02:00
parent 946919c850
commit f8a05fe2dc

View file

@ -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);