projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6023fa2
)
Fix a memory leak in icon_list_append_icon()
author
Andrej Kacian
<ticho@claws-mail.org>
Wed, 24 Apr 2019 23:04:59 +0000
(
01:04
+0200)
committer
Andrej Kacian
<ticho@claws-mail.org>
Wed, 24 Apr 2019 23:04:59 +0000
(
01:04
+0200)
src/mimeview.c
patch
|
blob
|
history
diff --git
a/src/mimeview.c
b/src/mimeview.c
index b697d52acda25897b1d00a5d0bb6bda2b8ab10a9..7e283307eece1963feb9b0020ed3f4ab68498c45 100644
(file)
--- a/
src/mimeview.c
+++ b/
src/mimeview.c
@@
-2624,8
+2624,12
@@
static void icon_list_append_icon (MimeView *mimeview, MimeInfo *mimeinfo)
g_free(escaped);
}
if (sigshort && *sigshort) {
- tiptmp = g_strjoin("\n", tip, g_markup_escape_text(sigshort, -1), NULL);
+ gchar *sigshort_escaped =
+ g_markup_escape_text(sigshort, -1);
+
+ tiptmp = g_strjoin("\n", tip, sigshort_escaped, NULL);
g_free(tip);
+ g_free(sigshort_escaped);
tip = tiptmp;
}
g_free(sigshort);