From 2ad24f39da6a314a1e3839c355103a6af131bc09 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sun, 22 Jul 2012 15:48:55 +0100 Subject: Interned string cleanup, phase 2: Create utils/corestrings and use it in css handler. --- desktop/netsurf.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'desktop/netsurf.c') diff --git a/desktop/netsurf.c b/desktop/netsurf.c index 4fa7134c0..433acde57 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" @@ -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); -- cgit v1.2.3