From 5b23bcae95be3b1135bbb2388be463361dd62e41 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 3 Oct 2011 22:12:51 +0000 Subject: Set iframe url pointer to NULL after unref at other end too. svn path=/trunk/netsurf/; revision=12943 --- render/html.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'render/html.c') diff --git a/render/html.c b/render/html.c index 168e2d07c..9aaa914c4 100644 --- a/render/html.c +++ b/render/html.c @@ -1996,8 +1996,10 @@ void html_destroy_iframe(struct content_html_iframe *iframe) next = iframe->next; if (iframe->name) talloc_free(iframe->name); - if (iframe->url) + if (iframe->url) { nsurl_unref(iframe->url); + iframe->url = NULL; + } talloc_free(iframe); } } -- cgit v1.2.3