aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2011-06-23 06:01:15 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2011-06-23 06:01:15 +0000
commitafa9a51b3aaabe150ebebc67bd63fdaf5f558d67 (patch)
tree1ede364a9a5d7307d79eb0c4db946728610fcba6 /src
parent3b0cb0f4839a6506492591dd8e5aa3392e9f9aab (diff)
src/messageview.c: removed alloca() calls.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2908 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src')
-rw-r--r--src/messageview.c6
1 files changed, 4 insertions, 2 deletions
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)