From e083b503a0608f99b0651cc55bafd3a99f2121b4 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sun, 13 Mar 2011 20:20:31 +0000 Subject: Ensure we stop the hlcache schedule before we quit the gui svn path=/trunk/netsurf/; revision=12036 --- content/hlcache.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'content/hlcache.c') diff --git a/content/hlcache.c b/content/hlcache.c index 08848e0aa..3b8d0b27a 100644 --- a/content/hlcache.c +++ b/content/hlcache.c @@ -104,6 +104,12 @@ hlcache_initialise(llcache_query_callback cb, void *pw) return NSERROR_OK; } +/* See hlcache.h for documentation */ +void hlcache_stop(void) +{ + /* Remove the hlcache_clean schedule */ + schedule_remove(hlcache_clean, NULL); +} /* See hlcache.h for documentation */ void hlcache_finalise(void) @@ -112,9 +118,6 @@ void hlcache_finalise(void) hlcache_entry *entry; hlcache_retrieval_ctx *ctx, *next; - /* Remove the hlcache_clean schedule */ - schedule_remove(hlcache_clean, NULL); - /* Obtain initial count of contents remaining */ for (num_contents = 0, entry = hlcache_content_list; entry != NULL; entry = entry->next) { -- cgit v1.2.3