[Commits] folder.c 1.213.2.203 1.213.2.204
pawel at claws-mail.org
pawel at claws-mail.org
Sat Nov 26 14:18:57 CET 2011
Update of /home/claws-mail/claws/src
In directory claws-mail:/tmp/cvs-serv24180/src
Modified Files:
Tag: gtk2
folder.c
Log Message:
2011-11-26 [pawel] 3.7.10cvs105
* src/folder.c
Fix bug #2505 'tagsdb becomes polluted with old folder entries'
Index: folder.c
===================================================================
RCS file: /home/claws-mail/claws/src/folder.c,v
retrieving revision 1.213.2.203
retrieving revision 1.213.2.204
diff -u -d -r1.213.2.203 -r1.213.2.204
--- folder.c 19 Nov 2011 15:14:01 -0000 1.213.2.203
+++ folder.c 26 Nov 2011 13:18:54 -0000 1.213.2.204
@@ -398,7 +398,7 @@
{
GNode *node, *start_node;
FolderUpdateData hookdata;
- gchar *tags_file = NULL;
+ gchar *tags_file = NULL, *tags_dir = NULL;
cm_return_if_fail(item != NULL);
cm_return_if_fail(item->folder != NULL);
@@ -428,7 +428,12 @@
tags_file = folder_item_get_tags_file(item);
if (tags_file)
claws_unlink(tags_file);
+ tags_dir = g_path_get_dirname(tags_file);
+ if (tags_dir)
+ rmdir(tags_dir);
+
g_free(tags_file);
+ g_free(tags_dir);
hookdata.folder = item->folder;
hookdata.update_flags = FOLDER_TREE_CHANGED | FOLDER_REMOVE_FOLDERITEM;
More information about the Commits
mailing list