mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-19 16:04:31 +03:00
Can't talloc_free nsurls. Thanks jmb.
svn path=/trunk/netsurf/; revision=12940
This commit is contained in:
parent
19f0f7053b
commit
382beb779e
@ -1977,7 +1977,7 @@ void html_destroy_frameset(struct content_html_frames *frameset)
|
||||
frameset->children[i].name = NULL;
|
||||
}
|
||||
if (frameset->children[i].url) {
|
||||
talloc_free(frameset->children[i].url);
|
||||
nsurl_unref(frameset->children[i].url);
|
||||
frameset->children[i].url = NULL;
|
||||
}
|
||||
if (frameset->children[i].children)
|
||||
@ -1997,7 +1997,7 @@ void html_destroy_iframe(struct content_html_iframe *iframe)
|
||||
if (iframe->name)
|
||||
talloc_free(iframe->name);
|
||||
if (iframe->url)
|
||||
talloc_free(iframe->url);
|
||||
nsurl_unref(iframe->url);
|
||||
talloc_free(iframe);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user