From: Alfons Hoogervorst Date: Wed, 3 Jul 2002 19:51:14 +0000 (+0000) Subject: dupe folder item's path because it's being reallocated by new folder scanning code X-Git-Tag: rel_0_8_0~71 X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=commitdiff_plain;h=12b1484ac4353ccbf703f4f71527d3d4d32f87ee dupe folder item's path because it's being reallocated by new folder scanning code --- diff --git a/ChangeLog.claws b/ChangeLog.claws index 72178e2d3..5526b1ced 100644 --- a/ChangeLog.claws +++ b/ChangeLog.claws @@ -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 diff --git a/configure.in b/configure.in index b76ca631f..db76e9918 100644 --- a/configure.in +++ b/configure.in @@ -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 diff --git a/src/folder.c b/src/folder.c index 9500878af..f77cf8e7f 100644 --- a/src/folder.c +++ b/src/folder.c @@ -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;