clutter/text: Don't call clutter_text_set_buffer() on finalize

clutter_text_set_buffer() tries to freeze/thaw notify, which is not
allowed during finalize and recent glib versions started warning about
this. This call can simply be removed, because the buffer is already set
to NULL on dispose, making the call in finalize redundant.

Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/2566
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2790>
This commit is contained in:
Sebastian Keller 2023-01-14 17:48:33 +01:00 committed by Marge Bot
parent 8abdbbdf24
commit cff631cb39

View File

@ -1788,7 +1788,6 @@ clutter_text_finalize (GObject *gobject)
if (priv->preedit_attrs) if (priv->preedit_attrs)
pango_attr_list_unref (priv->preedit_attrs); pango_attr_list_unref (priv->preedit_attrs);
clutter_text_set_buffer (self, NULL);
g_free (priv->font_name); g_free (priv->font_name);
g_clear_object (&priv->input_focus); g_clear_object (&priv->input_focus);