summaryrefslogtreecommitdiff
path: root/desktop/netsurf.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2012-07-22 15:48:55 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2012-07-22 15:48:55 +0100
commit2ad24f39da6a314a1e3839c355103a6af131bc09 (patch)
tree0663a043cb49e87bc7831b17074c1d41967ffcd6 /desktop/netsurf.c
parent1e65737c8cad643ed9591b306364a1844458fd13 (diff)
downloadnetsurf-2ad24f39da6a314a1e3839c355103a6af131bc09.tar.gz
netsurf-2ad24f39da6a314a1e3839c355103a6af131bc09.tar.bz2
Interned string cleanup, phase 2: Create utils/corestrings and use it in css handler.
Diffstat (limited to 'desktop/netsurf.c')
-rw-r--r--desktop/netsurf.c7
1 files changed, 7 insertions, 0 deletions
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);