diff options
Diffstat (limited to 'mail/message-list.c')
-rw-r--r-- | mail/message-list.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mail/message-list.c b/mail/message-list.c index 68b59449fa..3f9a3644ae 100644 --- a/mail/message-list.c +++ b/mail/message-list.c @@ -1493,8 +1493,11 @@ ml_tree_value_at (ETreeModel *etm, ETreePath path, int col, void *model_data) char **sender_name = NULL; str = camel_message_info_from (msg_info); if(str && str[0] != '\0'){ - sender_name=g_strsplit(str,"<",2); - return (void *)(*sender_name); + char *res; + sender_name = g_strsplit (str,"<",2); + res = g_strdup (*sender_name); + g_strfreev (sender_name); + return (void *)(res); } else return (void *)(""); |