From 382beb779e1e7bca7134d910a6deebdb43f9cc42 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 3 Oct 2011 21:58:50 +0000 Subject: Can't talloc_free nsurls. Thanks jmb. svn path=/trunk/netsurf/; revision=12940 --- render/html.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'render') diff --git a/render/html.c b/render/html.c index 900b28dc4..168e2d07c 100644 --- a/render/html.c +++ b/render/html.c @@ -1977,7 +1977,7 @@ void html_destroy_frameset(struct content_html_frames *frameset) frameset->children[i].name = NULL; } if (frameset->children[i].url) { - talloc_free(frameset->children[i].url); + nsurl_unref(frameset->children[i].url); frameset->children[i].url = NULL; } if (frameset->children[i].children) @@ -1997,7 +1997,7 @@ void html_destroy_iframe(struct content_html_iframe *iframe) if (iframe->name) talloc_free(iframe->name); if (iframe->url) - talloc_free(iframe->url); + nsurl_unref(iframe->url); talloc_free(iframe); } } -- cgit v1.2.3