emojichooser: Plug a memory leak

This commit is contained in:
Timm Bäder 2017-09-24 18:15:41 +02:00 committed by Daniel Boles
parent 6b899bb782
commit 3501a7ea41

View File

@ -336,7 +336,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 ();