mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-19 16:04:31 +03:00
Set url pointers to NULL after unref.
svn path=/trunk/netsurf/; revision=12942
This commit is contained in:
parent
8e0015798c
commit
012e0838cb
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user