Set url pointers to NULL after unref.

svn path=/trunk/netsurf/; revision=12942
This commit is contained in:
Michael Drake 2011-10-03 22:06:47 +00:00
parent 8e0015798c
commit 012e0838cb

View File

@ -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;
}