From 66c069816a33158b013d138d3d20228edcf6850d Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sun, 23 Feb 2020 17:20:45 +0000 Subject: NetSurf: Init/fini the page-info module on browser startup/quit. --- desktop/netsurf.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/desktop/netsurf.c b/desktop/netsurf.c index e3babd864..7577e1ff8 100644 --- a/desktop/netsurf.c +++ b/desktop/netsurf.c @@ -49,6 +49,7 @@ #include "netsurf/browser_window.h" #include "desktop/system_colour.h" +#include "desktop/page-info.h" #include "desktop/searchweb.h" #include "netsurf/misc.h" #include "desktop/gui_internal.h" @@ -206,6 +207,11 @@ nserror netsurf_init(const char *store_path) js_initialise(); + ret = page_info_init(); + if (ret != NSERROR_OK) { + return ret; + } + return NSERROR_OK; } @@ -220,7 +226,10 @@ void netsurf_exit(void) NSLOG(netsurf, INFO, "Closing GUI"); guit->misc->quit(); - + + NSLOG(netsurf, INFO, "Finalising page-info module"); + page_info_fini(); + NSLOG(netsurf, INFO, "Finalising JavaScript"); js_finalise(); -- cgit v1.2.3