jscript: Also clear the thread_id if the script state is set to Closed.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Gabriel Ivăncescu 2019-11-06 17:28:00 +02:00 committed by Alexandre Julliard
parent 15fce35b59
commit d8e8d1639f

View file

@ -231,7 +231,7 @@ static void decrease_state(JScript *This, SCRIPTSTATE state)
FIXME("NULL ctx\n");
}
if(state == SCRIPTSTATE_UNINITIALIZED)
if(state == SCRIPTSTATE_UNINITIALIZED || state == SCRIPTSTATE_CLOSED)
This->thread_id = 0;
if(This->site) {