dupe folder item's path because it's being reallocated by new folder scanning code
authorAlfons Hoogervorst <alfons@proteus.demon.nl>
Wed, 3 Jul 2002 19:51:14 +0000 (19:51 +0000)
committerAlfons Hoogervorst <alfons@proteus.demon.nl>
Wed, 3 Jul 2002 19:51:14 +0000 (19:51 +0000)
ChangeLog.claws
configure.in
src/folder.c

index 72178e2d3cf80e4189af03cb1d0098169f5da89a..5526b1cedc32b7b257c399d57d07d585d0c3c18f 100644 (file)
@@ -1,3 +1,9 @@
+2002-07-03 [alfons]    0.7.8claws46
+
+       * src/folder.c
+               dupe folder item's path because it's being reallocated
+               by new folder scanning code
+
 2002-07-03 [christoph] 0.7.8claws45
 
        * src/imap.c
index b76ca631f5dc03be699e832f31a27bdede383c5c..db76e99189e46eb6490fb754b3427c3ae48e65c9 100644 (file)
@@ -9,7 +9,7 @@ MINOR_VERSION=7
 MICRO_VERSION=8
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws45
+EXTRA_VERSION=claws46
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index 9500878af4ab9ab415b7c8d82982824c0184862a..f77cf8e7f1c08217d5805c6bda8d293eb80dafcc 100644 (file)
@@ -2173,7 +2173,7 @@ static void folder_get_persist_prefs_recursive(GNode *node, GHashTable *pptable)
                pp->hide_read_msgs = item->hide_read_msgs;
                pp->sort_key  = item->sort_key;
                pp->sort_type = item->sort_type;
-               g_hash_table_insert(pptable, item->path, pp);
+               g_hash_table_insert(pptable, g_strdup(item->path), pp);
        }               
 
        if (node->children) {
@@ -2188,6 +2188,8 @@ static void folder_get_persist_prefs_recursive(GNode *node, GHashTable *pptable)
 
 static gboolean persist_prefs_free(gpointer key, gpointer val, gpointer data)
 {
+       if (key) 
+               g_free(key);
        if (val) 
                g_free(val);
        return TRUE;