aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2003-03-25 09:38:46 +0800
committerMichael Zucci <zucchi@src.gnome.org>2003-03-25 09:38:46 +0800
commitbe58e1949e5df9f14d07f1019a273a74aa4982f8 (patch)
tree471a247feb32aa83351e5d74f105fd5ccad0f22f /mail
parente1476cffd4d13dce80bec1c896ab36613e05bd30 (diff)
downloadgsoc2013-evolution-be58e1949e5df9f14d07f1019a273a74aa4982f8.tar
gsoc2013-evolution-be58e1949e5df9f14d07f1019a273a74aa4982f8.tar.gz
gsoc2013-evolution-be58e1949e5df9f14d07f1019a273a74aa4982f8.tar.bz2
gsoc2013-evolution-be58e1949e5df9f14d07f1019a273a74aa4982f8.tar.lz
gsoc2013-evolution-be58e1949e5df9f14d07f1019a273a74aa4982f8.tar.xz
gsoc2013-evolution-be58e1949e5df9f14d07f1019a273a74aa4982f8.tar.zst
gsoc2013-evolution-be58e1949e5df9f14d07f1019a273a74aa4982f8.zip
strdup the key before freeing the url as it is probably pointing there.
2003-03-25 Not Zed <NotZed@Ximian.com> * mail-tools.c (meta_data_key): strdup the key before freeing the url as it is probably pointing there. svn path=/trunk/; revision=20491
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/mail-tools.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 50d15b06fd..43b86ef02c 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,5 +1,10 @@
2003-03-25 Not Zed <NotZed@Ximian.com>
+ * mail-tools.c (meta_data_key): strdup the key before freeing the
+ url as it is probably pointing there.
+
+2003-03-25 Not Zed <NotZed@Ximian.com>
+
* component-factory.c (got_folder): remove a debug printf that
made it in a commit.
diff --git a/mail/mail-tools.c b/mail/mail-tools.c
index 9892090221..565fcaed71 100644
--- a/mail/mail-tools.c
+++ b/mail/mail-tools.c
@@ -535,11 +535,12 @@ static char *meta_data_key(const char *uri, char **pathp)
if (key == NULL)
key = uri;
+ p = g_strdup(key);
camel_url_free(url);
*pathp = path->str;
g_string_free(path, FALSE);
- return g_strdup(key);
+ return p;
}
EMeta *