applications: Fix NULL hash table being unreffed.
When clicking away from the applications panel you can see: (gnome-control-center:95304): GLib-CRITICAL **: 09:12:52.941: g_hash_table_unref: assertion 'hash_table != NULL' failed
This commit is contained in:
parent
3e37033fb6
commit
f248e7353e
1 changed files with 4 additions and 4 deletions
|
@ -1871,10 +1871,10 @@ cc_applications_panel_finalize (GObject *object)
|
|||
g_clear_object (&self->privacy_settings);
|
||||
g_clear_object (&self->search_settings);
|
||||
|
||||
g_free (self->current_app_id);
|
||||
g_free (self->current_portal_app_id);
|
||||
g_hash_table_unref (self->globs);
|
||||
g_hash_table_unref (self->search_providers);
|
||||
g_clear_pointer (&self->current_app_id, g_free);
|
||||
g_clear_pointer (&self->current_portal_app_id, g_free);
|
||||
g_clear_pointer (&self->globs, g_hash_table_unref);
|
||||
g_clear_pointer (&self->search_providers, g_hash_table_unref);
|
||||
|
||||
G_OBJECT_CLASS (cc_applications_panel_parent_class)->finalize (object);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue