label: Don't forget to clear select info
This was showing up as crashes in the testsuite, where a later test runs the mainloop, and that causes Wayland to claim the primary selection on a widget that is already disposed.
This commit is contained in:
@@ -1523,6 +1523,7 @@ gtk_label_dispose (GObject *object)
|
||||
GtkLabel *self = GTK_LABEL (object);
|
||||
|
||||
gtk_label_set_mnemonic_widget (self, NULL);
|
||||
gtk_label_clear_select_info (self);
|
||||
|
||||
G_OBJECT_CLASS (gtk_label_parent_class)->dispose (object);
|
||||
}
|
||||
|
Reference in New Issue
Block a user