mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 07:56:17 +01:00
GApplication: destroy the impl on shutdown
It's theoretically possible (and see in the wild) for D-Bus messages to come in to the application after shutdown() has been called and while we're draining out the lingering events in the main context. Prevent this from happening by ensuring we unregister our objects on D-Bus during the shutdown process. https://bugzilla.gnome.org/show_bug.cgi?id=757372
This commit is contained in:
parent
aa16359986
commit
21b1c390a3
@ -2339,7 +2339,11 @@ g_application_run (GApplication *application,
|
||||
}
|
||||
|
||||
if (application->priv->impl)
|
||||
g_application_impl_flush (application->priv->impl);
|
||||
{
|
||||
g_application_impl_flush (application->priv->impl);
|
||||
g_application_impl_destroy (application->priv->impl);
|
||||
application->priv->impl = NULL;
|
||||
}
|
||||
|
||||
g_settings_sync ();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user