summaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
Diffstat (limited to 'render')
-rw-r--r--render/html.c4
1 files changed, 3 insertions, 1 deletions
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);
}
}