[gtk+] emoji chooser: Don't leak gestures
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] emoji chooser: Don't leak gestures
- Date: Sun, 19 Nov 2017 14:33:45 +0000 (UTC)
commit 1f8debbac9c677894916d26f3c19923ffee099cd
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Nov 19 08:28:35 2017 -0500
emoji chooser: Don't leak gestures
We were not freeing these gestures as we should.
gtk/gtkemojichooser.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkemojichooser.c b/gtk/gtkemojichooser.c
index 8902b2c..7c43b80 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]