Merge branch 'backport-1009-application-crash-glib-2-60' into 'glib-2-60'

Backport !1009 “gapplication: remove inactivity_timeout source on finalize” to glib-2-60

See merge request GNOME/glib!1012
This commit is contained in:
Emmanuele Bassi
2019-09-02 13:22:31 +00:00

View File

@@ -1372,6 +1372,9 @@ g_application_finalize (GObject *object)
{
GApplication *application = G_APPLICATION (object);
if (application->priv->inactivity_timeout_id)
g_source_remove (application->priv->inactivity_timeout_id);
g_slist_free_full (application->priv->option_groups, (GDestroyNotify) g_option_group_unref);
if (application->priv->main_options)
g_option_group_unref (application->priv->main_options);