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
This commit is contained in:
Not Zed
2002-09-10 11:37:34 +00:00
committed by Michael Zucci
parent 4eb9f5c28b
commit c70fc69cd5
2 changed files with 8 additions and 2 deletions

View File

@ -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

View File

@ -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);
}