[Commits] [SCM] claws branch, master, updated. 3.16.0-162-g6c151a6
wwp at claws-mail.org
wwp at claws-mail.org
Wed May 9 08:50:34 CEST 2018
The branch, master has been updated
via 6c151a6569310f6dcc18561f95ee8acdea3450e7 (commit)
from 2059b3ae33cb6e557a54a0cb2a9f8e7c36608808 (commit)
Summary of changes:
src/summaryview.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 6c151a6569310f6dcc18561f95ee8acdea3450e7
Author: wwp <wwp at free.fr>
Date: Wed May 9 08:50:26 2018 +0200
Fix a leak.
diff --git a/src/summaryview.c b/src/summaryview.c
index f4298a9..426ed05 100644
--- a/src/summaryview.c
+++ b/src/summaryview.c
@@ -3481,9 +3481,12 @@ static inline void summary_set_header(SummaryView *summaryview, gchar *text[],
if (!to_text)
to_text = _("(No Recipient)");
else {
- if (prefs_common.summary_from_show == SHOW_NAME)
+ if (prefs_common.summary_from_show == SHOW_NAME) {
+ gchar *prev_to_text = to_text;
+
to_text = procheader_get_fromname(to_text);
- else if (prefs_common.summary_from_show == SHOW_ADDR)
+ g_free(prev_to_text);
+ } else if (prefs_common.summary_from_show == SHOW_ADDR)
extract_address(to_text);
}
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list