aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2002-09-10 19:37:34 +0800
committerMichael Zucci <zucchi@src.gnome.org>2002-09-10 19:37:34 +0800
commitc70fc69cd574bbe3e9b3449f1b434b983c2dde66 (patch)
tree8de9f57c7895b66106ac110676b8021b72b72eac /camel
parent4eb9f5c28b9b656e0efb14e842b98038a136c7cb (diff)
downloadgsoc2013-evolution-c70fc69cd574bbe3e9b3449f1b434b983c2dde66.tar
gsoc2013-evolution-c70fc69cd574bbe3e9b3449f1b434b983c2dde66.tar.gz
gsoc2013-evolution-c70fc69cd574bbe3e9b3449f1b434b983c2dde66.tar.bz2
gsoc2013-evolution-c70fc69cd574bbe3e9b3449f1b434b983c2dde66.tar.lz
gsoc2013-evolution-c70fc69cd574bbe3e9b3449f1b434b983c2dde66.tar.xz
gsoc2013-evolution-c70fc69cd574bbe3e9b3449f1b434b983c2dde66.tar.zst
gsoc2013-evolution-c70fc69cd574bbe3e9b3449f1b434b983c2dde66.zip
Remove the hash table entry using the right path. Related to #29731.
2002-09-10 Not Zed <NotZed@Ximian.com> * camel-data-cache.c (data_cache_expire): Remove the hash table entry using the right path. Related to #29731. (camel_data_cache_remove): " svn path=/trunk/; revision=18031
Diffstat (limited to 'camel')
-rw-r--r--camel/ChangeLog6
-rw-r--r--camel/camel-data-cache.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index c9d13ddd20..508c2c932b 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,9 @@
+2002-09-10 Not Zed <NotZed@Ximian.com>
+
+ * camel-data-cache.c (data_cache_expire): Remove the hash table
+ entry using the right path. Related to #29731.
+ (camel_data_cache_remove): "
+
2002-09-09 Jeffrey Stedfast <fejj@ximian.com>
Fixes bug #4224
diff --git a/camel/camel-data-cache.c b/camel/camel-data-cache.c
index 91ab7f0588..04c9650bdb 100644
--- a/camel/camel-data-cache.c
+++ b/camel/camel-data-cache.c
@@ -250,7 +250,7 @@ data_cache_expire(CamelDataCache *cdc, const char *path, const char *keep, time_
dd(printf("Has expired! Removing!\n"));
unlink(s->str);
if (g_hash_table_lookup_extended(cdc->priv->busy_path, s->str, (void **)&oldpath, (void **)&stream)) {
- g_hash_table_remove(cdc->priv->busy_path, path);
+ g_hash_table_remove(cdc->priv->busy_path, oldpath);
g_hash_table_remove(cdc->priv->busy_stream, stream);
g_free(oldpath);
}
@@ -432,7 +432,7 @@ camel_data_cache_remove(CamelDataCache *cdc, const char *path, const char *key,
real = data_cache_path(cdc, FALSE, path, key);
if (g_hash_table_lookup_extended(cdc->priv->busy_path, real, (void **)&oldpath, (void **)&stream)) {
- g_hash_table_remove(cdc->priv->busy_path, path);
+ g_hash_table_remove(cdc->priv->busy_path, oldpath);
g_hash_table_remove(cdc->priv->busy_stream, stream);
g_free(oldpath);
}