From afa9a51b3aaabe150ebebc67bd63fdaf5f558d67 Mon Sep 17 00:00:00 2001 From: hiro Date: Thu, 23 Jun 2011 06:01:15 +0000 Subject: src/messageview.c: removed alloca() calls. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2908 ee746299-78ed-0310-b773-934348b2243d --- src/messageview.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/messageview.c') 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) -- cgit v1.2.3