Debian Codegraph @

debian/patches/clutter-text-Do-not-emit-signal-on-finalization.patch

raw
1 From: =?utf-8?b?Ik1hcmNvIFRyZXZpc2FuIChUcmV2acOxbyki?= <[email protected]>
2 Date: Tue, 7 Mar 2023 16:53:31 +0100
3 Subject: clutter-text: Do not emit signal on finalization
4
5 This is wrong and ensured not to happen by glib 2.75
6
7 Origin: https://gitlab.gnome.org/3v1n0/clutter/-/commit/2ec2f2fc1dabe827
8 ---
9 clutter/clutter-text.c | 7 ++++++-
10 1 file changed, 6 insertions(+), 1 deletion(-)
11
12 diff --git a/clutter/clutter-text.c b/clutter/clutter-text.c
13 index 0b83de9..228b004 100644
14 --- a/clutter/clutter-text.c
15 +++ b/clutter/clutter-text.c
16 @@ -1500,7 +1500,12 @@ clutter_text_finalize (GObject *gobject)
17
18 clutter_text_dirty_paint_volume (self);
19
20 - clutter_text_set_buffer (self, NULL);
21 + if (priv->buffer)
22 + {
23 + buffer_disconnect_signals (self);
24 + g_clear_object (&priv->buffer);
25 + }
26 +
27 g_free (priv->font_name);
28
29 G_OBJECT_CLASS (clutter_text_parent_class)->finalize (gobject);