NetSurf: Init/fini the page-info module on browser startup/quit.

This commit is contained in:
Michael Drake 2020-02-23 17:20:45 +00:00
parent 0e4f09db0f
commit 66c069816a

View File

@ -49,6 +49,7 @@
#include "netsurf/browser_window.h" #include "netsurf/browser_window.h"
#include "desktop/system_colour.h" #include "desktop/system_colour.h"
#include "desktop/page-info.h"
#include "desktop/searchweb.h" #include "desktop/searchweb.h"
#include "netsurf/misc.h" #include "netsurf/misc.h"
#include "desktop/gui_internal.h" #include "desktop/gui_internal.h"
@ -206,6 +207,11 @@ nserror netsurf_init(const char *store_path)
js_initialise(); js_initialise();
ret = page_info_init();
if (ret != NSERROR_OK) {
return ret;
}
return NSERROR_OK; return NSERROR_OK;
} }
@ -221,6 +227,9 @@ void netsurf_exit(void)
NSLOG(netsurf, INFO, "Closing GUI"); NSLOG(netsurf, INFO, "Closing GUI");
guit->misc->quit(); guit->misc->quit();
NSLOG(netsurf, INFO, "Finalising page-info module");
page_info_fini();
NSLOG(netsurf, INFO, "Finalising JavaScript"); NSLOG(netsurf, INFO, "Finalising JavaScript");
js_finalise(); js_finalise();