summaryrefslogtreecommitdiff
path: root/render/box_construct.c
diff options
context:
space:
mode:
Diffstat (limited to 'render/box_construct.c')
-rw-r--r--render/box_construct.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/render/box_construct.c b/render/box_construct.c
index e34e8d746..6101d8f1b 100644
--- a/render/box_construct.c
+++ b/render/box_construct.c
@@ -1587,8 +1587,10 @@ bool box_frameset(BOX_SPECIAL_PARAMS)
*/
static int box_frames_talloc_destructor(struct content_html_frames *f)
{
- if (f->url != NULL)
+ if (f->url != NULL) {
nsurl_unref(f->url);
+ f->url = NULL;
+ }
return 0;
}
@@ -1789,8 +1791,10 @@ bool box_create_frameset(struct content_html_frames *f, xmlNode *n,
*/
static int box_iframes_talloc_destructor(struct content_html_iframe *f)
{
- if (f->url != NULL)
+ if (f->url != NULL) {
nsurl_unref(f->url);
+ f->url = NULL;
+ }
return 0;
}