diff options
author | Matthias Clasen <mclasen@redhat.com> | 2017-11-19 08:28:35 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2017-11-19 09:27:53 -0500 |
commit | 1f8debbac9c677894916d26f3c19923ffee099cd (patch) | |
tree | 08b51ba6a1eeaa567cdf8f8f27f3e59fcfb7812b /gtk/gtkemojichooser.c | |
parent | a8531605db9c0564ff83fd869357ad5d910fb5b5 (diff) | |
download | gtk+-1f8debbac9c677894916d26f3c19923ffee099cd.tar.gz |
emoji chooser: Don't leak gestures
We were not freeing these gestures as we should.
Diffstat (limited to 'gtk/gtkemojichooser.c')
-rw-r--r-- | gtk/gtkemojichooser.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtkemojichooser.c b/gtk/gtkemojichooser.c index 8902b2c3e1..7c43b80fda 100644 --- a/gtk/gtkemojichooser.c +++ b/gtk/gtkemojichooser.c @@ -91,6 +91,10 @@ gtk_emoji_chooser_finalize (GObject *object) g_variant_unref (chooser->data); g_object_unref (chooser->settings); + g_clear_object (&chooser->recent_press); + g_clear_object (&chooser->people_press); + g_clear_object (&chooser->body_press); + G_OBJECT_CLASS (gtk_emoji_chooser_parent_class)->finalize (object); } |