mshtml/tests: Release interface after successful QI.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
fb6304119a
commit
08cdd05be0
|
@ -2505,7 +2505,7 @@ static HRESULT WINAPI ActiveScript_SetScriptSite(IActiveScript *iface, IActiveSc
|
|||
|
||||
hres = IActiveScriptSite_QueryInterface(pass, &IID_IActiveScriptSiteInterruptPoll, (void**)&poll);
|
||||
ok(hres == S_OK, "Could not get IActiveScriptSiteInterruptPoll interface: %08x\n", hres);
|
||||
if(FAILED(hres))
|
||||
if(SUCCEEDED(hres))
|
||||
IActiveScriptSiteInterruptPoll_Release(poll);
|
||||
|
||||
hres = IActiveScriptSite_GetLCID(pass, &lcid);
|
||||
|
|
Loading…
Reference in New Issue