0.9.4claws75
authorChristoph Hohmann <reboot@gmx.ch>
Tue, 9 Sep 2003 19:56:37 +0000 (19:56 +0000)
committerChristoph Hohmann <reboot@gmx.ch>
Tue, 9 Sep 2003 19:56:37 +0000 (19:56 +0000)
* src/folder.c
        free item->prefs in folder_item_destroy

ChangeLog.claws
configure.ac
src/folder.c

index f16d6bf..221df15 100644 (file)
@@ -1,3 +1,8 @@
+2003-09-09 [christoph] 0.9.4claws75
+
+       * src/folder.c
+               free item->prefs in folder_item_destroy
+
 2003-09-09 [alfons]    0.9.4claws74
 
        * src/folderview.c
index e55336c..12ea692 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=4
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=74
+EXTRA_VERSION=75
 if test $EXTRA_VERSION -eq 0; then
     VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}claws
 else
index 8c5aa3d..ea9c6bf 100644 (file)
@@ -303,6 +303,8 @@ void folder_item_destroy(FolderItem *item)
 
        if (item->cache)
                folder_item_free_cache(item);
+       if (item->prefs)
+               folder_item_prefs_free(item->prefs);
        g_free(item->name);
        g_free(item->path);
 
@@ -498,13 +500,14 @@ FolderItem *folder_create_folder(FolderItem *parent, const gchar *name)
        FolderUpdateData hookdata;
 
        new_item = parent->folder->klass->create_folder(parent->folder, parent, name);
-       if (new_item)
+       if (new_item) {
                new_item->cache = msgcache_new();
 
-       hookdata.folder = new_item->folder;
-       hookdata.update_flags = FOLDER_TREE_CHANGED | FOLDER_NEW_FOLDERITEM;
-       hookdata.item = new_item;
-       hooks_invoke(FOLDER_UPDATE_HOOKLIST, &hookdata);
+               hookdata.folder = new_item->folder;
+               hookdata.update_flags = FOLDER_TREE_CHANGED | FOLDER_NEW_FOLDERITEM;
+               hookdata.item = new_item;
+               hooks_invoke(FOLDER_UPDATE_HOOKLIST, &hookdata);
+       }
 
        return new_item;
 }