mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-23 22:16:16 +01:00
gapplication: Properly free the option_strings
option_strings gets set in g_application_add_main_option, so it can contain elements independent from packed_options. https://bugzilla.gnome.org/show_bug.cgi?id=773303
This commit is contained in:
parent
7470cc902b
commit
f14389bec9
@ -1254,10 +1254,10 @@ g_application_finalize (GObject *object)
|
||||
if (application->priv->main_options)
|
||||
g_option_group_unref (application->priv->main_options);
|
||||
if (application->priv->packed_options)
|
||||
{
|
||||
g_slist_free_full (application->priv->option_strings, g_free);
|
||||
g_hash_table_unref (application->priv->packed_options);
|
||||
}
|
||||
g_hash_table_unref (application->priv->packed_options);
|
||||
|
||||
g_slist_free_full (application->priv->option_strings, g_free);
|
||||
|
||||
if (application->priv->impl)
|
||||
g_application_impl_destroy (application->priv->impl);
|
||||
g_free (application->priv->id);
|
||||
|
Loading…
Reference in New Issue
Block a user