talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit b17dda3046b44e615747ad59fbcc7b5c75053fd1
parent a73b1eec22aeb59262113ba7044081349da446db
Author: Andrej Kacian <ticho@claws-mail.org>
Date:   Thu, 25 Apr 2019 01:04:59 +0200

Fix a memory leak in icon_list_append_icon()

Diffstat:
Msrc/mimeview.c | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/mimeview.c b/src/mimeview.c @@ -2629,8 +2629,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);