0.9.4claws66
authorChristoph Hohmann <reboot@gmx.ch>
Sat, 6 Sep 2003 18:52:29 +0000 (18:52 +0000)
committerChristoph Hohmann <reboot@gmx.ch>
Sat, 6 Sep 2003 18:52:29 +0000 (18:52 +0000)
* src/folder.c
        destroy folder's MsgCache if FolderItem is removed to make sure
        it is not saved when the FolderItem is destroyed

ChangeLog.claws
configure.ac
src/folder.c

index f7dc7414a8ef13c7c30686a867520604334032ff..11ed518e77c8298e00b964f5b52508249a2f6111 100644 (file)
@@ -1,3 +1,9 @@
+2003-09-06 [christoph] 0.9.4claws66
+
+       * src/folder.c
+               destroy folder's MsgCache if FolderItem is removed to make sure
+               it is not saved when the FolderItem is destroyed
+
 2003-09-06 [christoph] 0.9.4claws65
 
        * src/plugins/clamav/clamav_plugin.c
 2003-09-06 [christoph] 0.9.4claws65
 
        * src/plugins/clamav/clamav_plugin.c
index 058c7ef0ee69c6d1fb0a8bb5b8dfa2dd894c7bae..743064de2ab302c6414968d8757e1285065ea08d 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=4
 INTERFACE_AGE=0
 BINARY_AGE=0
 MICRO_VERSION=4
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=65
+EXTRA_VERSION=66
 if test $EXTRA_VERSION -eq 0; then
     VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}claws
 else
 if test $EXTRA_VERSION -eq 0; then
     VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}claws
 else
index 01ff936afc01f7e49c439df76a0512a896f8a4eb..692e3a08be5edab1c2868338856cb5b2da08e66b 100644 (file)
@@ -231,6 +231,11 @@ static gboolean folder_item_remove_func(GNode *node, gpointer data)
 {
        FolderItem *item = FOLDER_ITEM(node->data);
 
 {
        FolderItem *item = FOLDER_ITEM(node->data);
 
+       if (item->cache != NULL) {
+               msgcache_destroy(item->cache);
+               item->cache = NULL;
+       }
+
        folder_item_destroy(item);
        return FALSE;
 }
        folder_item_destroy(item);
        return FALSE;
 }