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:
Matthias Clasen
2024-03-11 08:29:00 -04:00
parent 229b34d478
commit a48df87a85

View File

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