summaryrefslogtreecommitdiff
path: root/content/cache.c
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2004-01-26 14:16:23 +0000
committerJames Bursa <james@netsurf-browser.org>2004-01-26 14:16:23 +0000
commit658084359d02596b425a27ac4c452ff65f73e1f8 (patch)
tree2cde49b9de968585587aa742f77487acaebdf7df /content/cache.c
parent92941a762d0abe39136ad73562fa130fbd39db57 (diff)
downloadnetsurf-658084359d02596b425a27ac4c452ff65f73e1f8.tar.gz
netsurf-658084359d02596b425a27ac4c452ff65f73e1f8.tar.bz2
[project @ 2004-01-26 14:16:23 by bursa]
Fix crashes related to content_destroy() by adding lock, implement no_error_pages. svn path=/import/netsurf/; revision=508
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;