summaryrefslogtreecommitdiff
path: root/navit/cache.c
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2010-12-22 09:22:50 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2010-12-22 09:22:50 +0000
commit5cf7f1c8257df6cbf4142af4a64716294c706e0e (patch)
tree5903e49b78acf344cc81fa96fd49f3ed95bc8f24 /navit/cache.c
parent7562fbb9b8aee4a9770536fdc0449d48d7e19d33 (diff)
downloadnavit-svn-5cf7f1c8257df6cbf4142af4a64716294c706e0e.tar.gz
Fix:Core:Correct cache flush handling
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@3811 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/cache.c')
-rw-r--r--navit/cache.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/navit/cache.c b/navit/cache.c
index 7c09d30d..f369b8d0 100644
--- a/navit/cache.c
+++ b/navit/cache.c
@@ -270,8 +270,10 @@ void
cache_flush(struct cache *cache, void *id)
{
struct cache_entry *entry=g_hash_table_lookup(cache->hash, id);
- if (entry)
+ if (entry) {
+ cache_remove_from_list(entry->where, entry);
cache_remove(cache, entry);
+ }
}