mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
Fix the Emoji chooser finalize
If the Emoji chooser is finalized before the idle has run, it would spew criticals, breaking some tests. Avoid that.
This commit is contained in:
parent
7404c393f3
commit
11ab39617e
@ -110,8 +110,8 @@ gtk_emoji_chooser_finalize (GObject *object)
|
||||
if (chooser->populate_idle)
|
||||
g_source_remove (chooser->populate_idle);
|
||||
|
||||
g_variant_unref (chooser->data);
|
||||
g_object_unref (chooser->settings);
|
||||
g_clear_pointer (&chooser->data, g_variant_unref);
|
||||
g_clear_object (&chooser->settings);
|
||||
|
||||
G_OBJECT_CLASS (gtk_emoji_chooser_parent_class)->finalize (object);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user