[Linux] do not destroy unowned GdkKeymap instance (flutter/engine#34351)

`gdk_keymap_get_for_display()` does not transfer ownership to the
caller. Destroying the keymap object would cause problems further down
the road when `GtkWindow` gets to clean up and tries to destroy the
same keymap.
This commit is contained in:
J-P Nurmi
2022-06-29 01:25:52 +02:00
committed by GitHub
parent 28822928dc
commit 625f971298

View File

@@ -811,8 +811,6 @@ static void fl_view_remove(GtkContainer* container, GtkWidget* widget) {
if (widget == GTK_WIDGET(self->event_box)) {
g_clear_object(&self->event_box);
}
g_clear_object(&self->keymap);
}
// Implements GtkContainer::forall