diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | src/messageview.c | 6 |
2 files changed, 6 insertions, 3 deletions
@@ -3,7 +3,8 @@ * src/mimeview.[ch] src/textview.c: fixed a typo: mimeview_launch_part() and code cleanups. Removed alloca() call. - * src/summaryview.c: removed alloca() calls. + * src/summaryview.c + src/messageview.c: removed alloca() calls. 2011-06-16 diff --git a/src/messageview.c b/src/messageview.c index 6e02d7c8..911efb4d 100644 --- a/src/messageview.c +++ b/src/messageview.c @@ -757,11 +757,12 @@ void messageview_save_as(MessageView *messageview) msginfo = messageview->msginfo; if (msginfo->subject) { - Xstrdup_a(filename, msginfo->subject, return); + filename = g_strdup(msginfo->subject); subst_for_filename(filename); } dest = filesel_save_as(filename); + g_free(filename); if (!dest) return; src = procmsg_get_message_file(msginfo); @@ -998,10 +999,11 @@ static void add_address_cb(gpointer data, guint action, GtkWidget *widget) if (!messageview->msginfo) return; msginfo = messageview->msginfo; - Xstrdup_a(from, msginfo->from, return); + from = g_strdup(msginfo->from); eliminate_address_comment(from); extract_address(from); addressbook_add_contact(msginfo->fromname, from, NULL); + g_free(from); } static void create_filter_cb(gpointer data, guint action, GtkWidget *widget) |