hlcache_fini(): Deschedule cleanups on finalisation

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
This commit is contained in:
Daniel Silverstone 2019-09-07 15:23:45 +01:00
parent 4065f1e027
commit b03786920a
1 changed files with 3 additions and 0 deletions

View File

@ -660,6 +660,9 @@ void hlcache_finalise(void)
NSLOG(netsurf, INFO, "hit/miss %d/%d", hlcache->hit_count,
hlcache->miss_count);
/* De-schedule ourselves */
guit->misc->schedule(-1, hlcache_clean, NULL);
free(hlcache);
hlcache = NULL;