diff options
author | Timm Bäder <mail@baedert.org> | 2017-09-24 18:15:41 +0200 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2017-09-24 18:15:41 +0200 |
commit | da701ede91bb6b96aa1b166af975e5806abf7551 (patch) | |
tree | 038696d2c25c3bd18b2defc7fdee885b2976db3f | |
parent | 44b9b6caee0f4701811bad7e55e598b79400b66a (diff) | |
download | gtk+-da701ede91bb6b96aa1b166af975e5806abf7551.tar.gz |
emojichooser: Plug a memory leak
-rw-r--r-- | gtk/gtkemojichooser.c | 3 |
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 (); |