summaryrefslogtreecommitdiff
path: root/content/hlcache.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2011-03-03 21:13:58 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2011-03-03 21:13:58 +0000
commitb7893f85cd564edca5f41ec0d139ffcc3aedf6f2 (patch)
treeb5d38424e1fac91fef393efb10ec04d42eb6d8d5 /content/hlcache.c
parentc7605db9d5fedc080d041095c410a40554f997a0 (diff)
downloadnetsurf-b7893f85cd564edca5f41ec0d139ffcc3aedf6f2.tar.gz
netsurf-b7893f85cd564edca5f41ec0d139ffcc3aedf6f2.tar.bz2
Do not attempt to destroy contents that are still loading
svn path=/trunk/netsurf/; revision=11898
Diffstat (limited to 'content/hlcache.c')
-rw-r--r--content/hlcache.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/content/hlcache.c b/content/hlcache.c
index 6d4c3ea48..b31b0d4d8 100644
--- a/content/hlcache.c
+++ b/content/hlcache.c
@@ -378,6 +378,10 @@ void hlcache_clean(void)
if (entry->content == NULL)
continue;
+ if (content__get_status(entry->content) ==
+ CONTENT_STATUS_LOADING)
+ continue;
+
if (content_count_users(entry->content) != 0)
continue;