[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user