From be58e1949e5df9f14d07f1019a273a74aa4982f8 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Tue, 25 Mar 2003 01:38:46 +0000 Subject: strdup the key before freeing the url as it is probably pointing there. 2003-03-25 Not Zed * mail-tools.c (meta_data_key): strdup the key before freeing the url as it is probably pointing there. svn path=/trunk/; revision=20491 --- mail/mail-tools.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mail/mail-tools.c') 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 * -- cgit