jscript: Check for This->ctx and This->site earlier (Coverity).

This commit is contained in:
Marcus Meissner 2008-10-14 09:59:33 +02:00 committed by Alexandre Julliard
parent 0a2efbb1cc
commit 4dceb1f8bf
1 changed files with 14 additions and 13 deletions

View File

@ -306,6 +306,7 @@ static HRESULT WINAPI JScript_Close(IActiveScript *iface)
clear_script_queue(This);
if(This->ctx) {
if(This->ctx->named_items) {
named_item_t *iter, *iter2;
@ -321,7 +322,7 @@ static HRESULT WINAPI JScript_Close(IActiveScript *iface)
This->ctx->named_items = NULL;
}
if(This->ctx) {
if (This->site)
change_state(This, SCRIPTSTATE_CLOSED);
if(This->ctx->script_disp) {