summaryrefslogtreecommitdiff
path: root/content/cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'content/cache.c')
-rw-r--r--content/cache.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/content/cache.c b/content/cache.c
index 5e95f4c6e..760f54679 100644
--- a/content/cache.c
+++ b/content/cache.c
@@ -213,6 +213,7 @@ void cache_shrink(void)
LOG(("size %lu, removing %p '%s'", size, e->content, e->content->url));
/* TODO: move to disc cache */
size -= e->content->size;
+ e->content->cache = 0;
content_destroy(e->content);
unused_list->prev = e->prev;
e->prev->next = unused_list;