editablelabel: Properly clean up in dispose
Unparenting the stack finalizes the entry and label, but at least the label is available via the gtk_editable_get_delegate API, and the a11y implementation uses that at dispose time. So, clear the pointers to prevent them from being dangling. This was showing up as a segfault of the doc-shooter.
This commit is contained in:
@@ -341,6 +341,9 @@ gtk_editable_label_dispose (GObject *object)
|
||||
|
||||
g_clear_pointer (&self->stack, gtk_widget_unparent);
|
||||
|
||||
self->entry = NULL;
|
||||
self->label = NULL;
|
||||
|
||||
G_OBJECT_CLASS (gtk_editable_label_parent_class)->dispose (object);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user