[gtk: 1/2] Fix a string leak
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk: 1/2] Fix a string leak
- Date: Fri, 12 Jul 2019 10:00:11 +0000 (UTC)
commit d15dc6f90b5ee651469b2f52618c185d481c21a4
Author: Luca Bacci <luca bacci982 gmail com>
Date: Fri Jul 12 08:43:44 2019 +0000
Fix a string leak
Fixes #2014
gtk/gtkemojicompletion.c | 1 -
1 file changed, 1 deletion(-)
---
diff --git a/gtk/gtkemojicompletion.c b/gtk/gtkemojicompletion.c
index 058e1867e2..23d8a34195 100644
--- a/gtk/gtkemojicompletion.c
+++ b/gtk/gtkemojicompletion.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]