mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-22 20:16:54 +03:00
NetSurf: Init/fini the page-info module on browser startup/quit.
This commit is contained in:
parent
0e4f09db0f
commit
66c069816a
@ -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();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user