Free fi->path if we are gonna replace it with the vinfo path.
authorJeffrey Stedfast <fejj@ximian.com>
Thu, 4 Dec 2003 02:11:02 +0000 (02:11 +0000)
committerJeffrey Stedfast <fejj@src.gnome.org>
Thu, 4 Dec 2003 02:11:02 +0000 (02:11 +0000)
2003-12-03  Jeffrey Stedfast  <fejj@ximian.com>

* camel-store.c (add_special_info): Free fi->path if we are gonna
replace it with the vinfo path.

camel/ChangeLog
camel/camel-store.c

index 0ec8c88..4f01e89 100644 (file)
@@ -1,5 +1,8 @@
 2003-12-03  Jeffrey Stedfast  <fejj@ximian.com>
 
+       * camel-store.c (add_special_info): Free fi->path if we are gonna
+       replace it with the vinfo path.
+
        * providers/local/camel-mbox-store.c (create_folder): Treat
        parent_name == NULL and parent_name == "" the same.
 
index ad88c7e..37b3007 100644 (file)
@@ -726,6 +726,7 @@ add_special_info (CamelStore *store, CamelFolderInfo *info, const char *name, co
                g_free (vinfo->full_name);
                g_free (vinfo->name);
                g_free (vinfo->url);
+               g_free (vinfo->path);
        } else {
                /* There wasn't a Trash/Junk folder so create a new folder entry */
                vinfo = g_new0 (CamelFolderInfo, 1);