mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-22 20:16:54 +03:00
Core hotlist: Ensure any hotlist save callback is removed on hotlist_fini.
This commit is contained in:
parent
479c3fd0b5
commit
31d98a1d2e
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user