diff options
Diffstat (limited to 'desktop/netsurf.c')
-rw-r--r-- | desktop/netsurf.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/desktop/netsurf.c b/desktop/netsurf.c index 4fa7134c0..d2010d80b 100644 --- a/desktop/netsurf.c +++ b/desktop/netsurf.c @@ -47,6 +47,7 @@ #include "render/html.h" #include "render/textplain.h" +#include "utils/corestrings.h" #include "utils/log.h" #include "utils/url.h" #include "utils/utf8.h" @@ -76,7 +77,7 @@ bool verbose_log = false; static void netsurf_lwc_iterator(lwc_string *str, void *pw) { - LOG(("%.*s", (int) lwc_string_length(str), lwc_string_data(str))); + LOG(("[%3u] %.*s", str->refcnt, (int) lwc_string_length(str), lwc_string_data(str))); } /** @@ -169,6 +170,11 @@ nserror netsurf_init(int *pargc, messages_load(messages); + /* corestrings init */ + error = corestrings_init(); + if (error != NSERROR_OK) + return error; + /* set up cache limits based on the memory cache size option */ hlcache_parameters.limit = nsoption_int(memory_cache_size); @@ -287,6 +293,7 @@ void netsurf_exit(void) LOG(("Destroying System colours")); gui_system_colour_finalize(); + corestrings_fini(); LOG(("Remaining lwc strings:")); lwc_iterate_strings(netsurf_lwc_iterator, NULL); |