mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-13 14:29:20 +03:00
HTML: Use new js_closethread()
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
This commit is contained in:
parent
8f7bfb7b56
commit
6a2ce2b3c7
@ -1969,6 +1969,7 @@ html_open(struct content *c,
|
|||||||
static nserror html_close(struct content *c)
|
static nserror html_close(struct content *c)
|
||||||
{
|
{
|
||||||
html_content *htmlc = (html_content *) c;
|
html_content *htmlc = (html_content *) c;
|
||||||
|
nserror ret = NSERROR_OK;
|
||||||
|
|
||||||
selection_clear(&htmlc->sel, false);
|
selection_clear(&htmlc->sel, false);
|
||||||
|
|
||||||
@ -1982,7 +1983,12 @@ static nserror html_close(struct content *c)
|
|||||||
/* remove all object references from the html content */
|
/* remove all object references from the html content */
|
||||||
html_object_close_objects(htmlc);
|
html_object_close_objects(htmlc);
|
||||||
|
|
||||||
return NSERROR_OK;
|
if (htmlc->jsthread != NULL) {
|
||||||
|
/* Close, but do not destroy (yet) the JS thread */
|
||||||
|
ret = js_closethread(htmlc->jsthread);
|
||||||
|
}
|
||||||
|
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user