From 2276afb9f658dcc1527fa3732a340f8efaec7f66 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Tue, 27 Apr 2010 22:14:52 +0000 Subject: Log any remaining interned strings (there should be none) svn path=/trunk/netsurf/; revision=10502 --- desktop/netsurf.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/desktop/netsurf.c b/desktop/netsurf.c index b25209c4f..a69844f52 100644 --- a/desktop/netsurf.c +++ b/desktop/netsurf.c @@ -54,6 +54,11 @@ static void *netsurf_lwc_alloc(void *ptr, size_t len, void *pw) return realloc(ptr, len); } +static void netsurf_lwc_iterator(lwc_string *str, void *pw) +{ + LOG(("%.*s", (int) lwc_string_length(str), lwc_string_data(str))); +} + /** * Dispatch a low-level cache query to the frontend * @@ -191,6 +196,8 @@ void netsurf_exit(void) hlcache_finalise(); LOG(("Finalising low-level cache")); llcache_finalise(); + LOG(("Remaining lwc strings:")); + lwc_iterate_strings(netsurf_lwc_iterator, NULL); LOG(("Exited successfully")); } -- cgit v1.2.3