summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2017-09-24 18:15:41 +0200
committerTimm Bäder <mail@baedert.org>2017-09-24 18:15:41 +0200
commitda701ede91bb6b96aa1b166af975e5806abf7551 (patch)
tree038696d2c25c3bd18b2defc7fdee885b2976db3f
parent44b9b6caee0f4701811bad7e55e598b79400b66a (diff)
downloadgtk+-da701ede91bb6b96aa1b166af975e5806abf7551.tar.gz
emojichooser: Plug a memory leak
-rw-r--r--gtk/gtkemojichooser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkemojichooser.c b/gtk/gtkemojichooser.c
index d3d96b02c0..c1dcd61821 100644
--- a/gtk/gtkemojichooser.c
+++ b/gtk/gtkemojichooser.c
@@ -304,7 +304,8 @@ add_emoji (GtkWidget *box,
if (code != 0)
p += g_unichar_to_utf8 (code, p);
}
- p[0] = 0;
+ g_variant_unref (codes);
+ p[0] = 0;
label = gtk_label_new (text);
attrs = pango_attr_list_new ();