mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
GtkApplication windows contain a reference back to the application. This means the MyApplication object in the Flutter application never disposes. We workaround this by removing these references before we quit. This occurs for all GTK applications that quit using this method, see https://gitlab.gnome.org/GNOME/gtk/-/issues/6190. This may be fixed upstream at some point but the proposed workaround should solve the problem for all versions and not conflict with any upstream solution. Fixes https://github.com/flutter/flutter/issues/136582