From 32602f6ea90a2eb48b778dc5f6b8c170fc62b7c7 Mon Sep 17 00:00:00 2001 From: Richard Wilson Date: Thu, 1 Dec 2005 02:59:55 +0000 Subject: [project @ 2005-12-01 02:59:55 by rjw] Plug memory leak svn path=/import/netsurf/; revision=1890 --- desktop/options.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'desktop/options.c') diff --git a/desktop/options.c b/desktop/options.c index cdafe3279..2e87fa241 100644 --- a/desktop/options.c +++ b/desktop/options.c @@ -5,7 +5,7 @@ * Copyright 2003 Phil Mellor * Copyright 2003 John M Bell * Copyright 2004 James Bursa - * Copyright 2004 Richard Wilson + * Copyright 2005 Richard Wilson */ /** \file @@ -360,6 +360,7 @@ void options_load_tree_entry(xmlNode *li, struct node *directory) { last_date = atoi(comment + 10); else if (strncmp("Visits:", comment, 7) == 0) visits = atoi(comment + 7); + xmlFree(comment); } } @@ -371,6 +372,8 @@ void options_load_tree_entry(xmlNode *li, struct node *directory) { entry = tree_create_URL_node(directory, title, url, filetype, add_date, last_date, visits); + xmlFree(url); + xmlFree(title); } -- cgit v1.2.3