Fix a string leak

Fixes #2014
This commit is contained in:
Luca Bacci 2019-07-12 08:43:44 +00:00
parent 38cba6895a
commit d15dc6f90b

View File

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