aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@src.gnome.org>2001-09-15 08:11:40 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-09-15 08:11:40 +0800
commit346bdd86b9f5b2a8b9ecfbca76e174b4b10e9c07 (patch)
tree000fc9eb2282f997ed6ae2a47659eb385df88994 /mail
parent02add12fb652a3b01d6b6a4184276550f3c4377a (diff)
downloadgsoc2013-evolution-346bdd86b9f5b2a8b9ecfbca76e174b4b10e9c07.tar.gz
gsoc2013-evolution-346bdd86b9f5b2a8b9ecfbca76e174b4b10e9c07.tar.zst
gsoc2013-evolution-346bdd86b9f5b2a8b9ecfbca76e174b4b10e9c07.zip
fixed a small memory leak
svn path=/trunk/; revision=12848
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog3
-rw-r--r--mail/mail-ops.c1
2 files changed, 4 insertions, 0 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 8a7b1522fb..0531dedd58 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,5 +1,8 @@
2001-09-14 Jeffrey Stedfast <fejj@ximian.com>
+ * mail-ops.c (add_vtrash_info): Free the temporary path variable
+ here.
+
* subscribe-dialog.c (store_data_new): Added a refcount variable
so set the refcount to 1.
(sd_got_store): Unref the store-data.
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index 9a3976c6e8..15fe17c4e9 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -1082,6 +1082,7 @@ add_vtrash_info (CamelStore *store, CamelFolderInfo *info)
url = camel_url_new (info->url, NULL);
path = g_strdup_printf ("/%s", CAMEL_VTRASH_NAME);
camel_url_set_path (url, path);
+ g_free (path);
uri = camel_url_to_string (url, CAMEL_URL_HIDE_ALL);
camel_url_free (url);