From c70fc69cd574bbe3e9b3449f1b434b983c2dde66 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Tue, 10 Sep 2002 11:37:34 +0000 Subject: Remove the hash table entry using the right path. Related to #29731. 2002-09-10 Not Zed * 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 --- camel/camel-data-cache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'camel/camel-data-cache.c') 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); } -- cgit