summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2019-09-07 15:23:23 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2019-09-07 15:23:23 +0100
commit4065f1e0278d6d6d644bbf927b80125cf999a7bb (patch)
tree509466ceffacb3162a86608c6bdfe7a311f2468f /desktop
parent6c2d97bf01c25f2af6fd41a741ca0f74230fd8f5 (diff)
downloadnetsurf-4065f1e0278d6d6d644bbf927b80125cf999a7bb.tar.gz
netsurf-4065f1e0278d6d6d644bbf927b80125cf999a7bb.tar.bz2
netsurf_exit(): Release user-agent string on exit
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/netsurf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/desktop/netsurf.c b/desktop/netsurf.c
index 0928442dc..02080eb90 100644
--- a/desktop/netsurf.c
+++ b/desktop/netsurf.c
@@ -33,6 +33,7 @@
#include "utils/string.h"
#include "utils/utf8.h"
#include "utils/messages.h"
+#include "utils/useragent.h"
#include "content/content_factory.h"
#include "content/fetchers.h"
#include "content/hlcache.h"
@@ -230,6 +231,8 @@ void netsurf_exit(void)
NSLOG(netsurf, INFO, "Closing fetches");
fetcher_quit();
+ /* Now the fetchers are done, our user-agent string can go */
+ free_user_agent_string();
/* dump any remaining cache entries */
image_cache_fini();