aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2001-07-10 01:23:45 +0800
committerDan Winship <danw@src.gnome.org>2001-07-10 01:23:45 +0800
commit3b70c584967f35faf61e39df0508023c58b43e94 (patch)
tree70235a2df9246dff31851f5f37e666bab838f77a
parent84dd6b5536f10a266dcecf2754497257d4e8c984 (diff)
downloadgsoc2013-evolution-3b70c584967f35faf61e39df0508023c58b43e94.tar
gsoc2013-evolution-3b70c584967f35faf61e39df0508023c58b43e94.tar.gz
gsoc2013-evolution-3b70c584967f35faf61e39df0508023c58b43e94.tar.bz2
gsoc2013-evolution-3b70c584967f35faf61e39df0508023c58b43e94.tar.lz
gsoc2013-evolution-3b70c584967f35faf61e39df0508023c58b43e94.tar.xz
gsoc2013-evolution-3b70c584967f35faf61e39df0508023c58b43e94.tar.zst
gsoc2013-evolution-3b70c584967f35faf61e39df0508023c58b43e94.zip
g_strdup the result of g_get_home_dir since this variable will get free'd
* mail-display.c (save_part): g_strdup the result of g_get_home_dir since this variable will get free'd later. svn path=/trunk/; revision=10918
-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);