Fix a string leak

Fixes #2014
This commit is contained in:
Luca Bacci
2019-07-12 08:33:48 +00:00
parent ad4297e718
commit 8211e083f2

View File

@ -593,7 +593,6 @@ populate_completion (GtkEmojiCompletion *completion,
GVariantIter iter;
GVariant *item;
text = g_strdup (text);
g_free (completion->text);
completion->text = g_strdup (text);
completion->length = g_utf8_strlen (text, -1);