diff options
author | James Bursa <james@netsurf-browser.org> | 2004-01-26 14:16:23 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2004-01-26 14:16:23 +0000 |
commit | 658084359d02596b425a27ac4c452ff65f73e1f8 (patch) | |
tree | 2cde49b9de968585587aa742f77487acaebdf7df /content/cache.c | |
parent | 92941a762d0abe39136ad73562fa130fbd39db57 (diff) | |
download | netsurf-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.c | 1 |
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; |