diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2011-10-03 22:06:47 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2011-10-03 22:06:47 +0000 |
commit | 012e0838cb9cb87dfc46a63dc1837bd548b63c14 (patch) | |
tree | b5d28227d126b4d538e482bd437a323992bbaf2a /render | |
parent | 8e0015798c0b4cef5adb58f5a46d9ee367efa103 (diff) | |
download | netsurf-012e0838cb9cb87dfc46a63dc1837bd548b63c14.tar.gz netsurf-012e0838cb9cb87dfc46a63dc1837bd548b63c14.tar.bz2 |
Set url pointers to NULL after unref.
svn path=/trunk/netsurf/; revision=12942
Diffstat (limited to 'render')
-rw-r--r-- | render/box_construct.c | 8 |
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; } |