summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2017-04-25 15:14:56 +0100
committerMichael Drake <michael.drake@codethink.co.uk>2017-04-25 15:14:56 +0100
commit31d98a1d2e5081ef2ca2d941f7e3b92344185399 (patch)
tree0c29683bf6549df514ad8616757e0f9f7adb06e4
parent479c3fd0b50c72632f4ba09dd3a7e93c83298de4 (diff)
downloadnetsurf-31d98a1d2e5081ef2ca2d941f7e3b92344185399.tar.gz
netsurf-31d98a1d2e5081ef2ca2d941f7e3b92344185399.tar.bz2
Core hotlist: Ensure any hotlist save callback is removed on hotlist_fini.
-rw-r--r--desktop/hotlist.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/desktop/hotlist.c b/desktop/hotlist.c
index 7cae78165..3e2fcedd5 100644
--- a/desktop/hotlist.c
+++ b/desktop/hotlist.c
@@ -1368,6 +1368,10 @@ nserror hotlist_fini(void)
LOG("Finalising hotlist");
+ /* Remove any existing scheduled save callback */
+ guit->misc->schedule(-1, hotlist_schedule_save_cb, NULL);
+ hl_ctx.save_scheduled = false;
+
/* Save the hotlist */
err = hotlist_save(hl_ctx.save_path);
if (err != NSERROR_OK) {