aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog3
-rw-r--r--mail/mail-display.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index a361c91365..371f94eb7f 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,5 +1,8 @@
2001-07-09 Dan Winship <danw@ximian.com>
+ * mail-display.c (save_part): g_strdup the result of
+ g_get_home_dir since this variable will get free'd later.
+
* mail-format.c (mail_lookup_handler): Use
gnome_vfs_mime_get_short_list_applications rather than
gnome_vfs_mime_get_default_application.
diff --git a/mail/mail-display.c b/mail/mail-display.c
index ec7e393415..9eda71b942 100644
--- a/mail/mail-display.c
+++ b/mail/mail-display.c
@@ -212,7 +212,7 @@ save_part (CamelMimePart *part)
char *filename;
if(save_pathname == NULL)
- save_pathname = g_get_home_dir();
+ save_pathname = g_strdup (g_get_home_dir ());
filename = make_safe_filename (save_pathname, part);