mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 15:45:00 +00:00
jscript: Consistently use jsdisp_addref and jsdisp_release.
This commit is contained in:
parent
119b0bb77d
commit
0cfa404f3b
|
@ -1111,7 +1111,7 @@ static ULONG WINAPI ScriptTypeInfo_Release(ITypeInfo *iface)
|
||||||
{
|
{
|
||||||
for (i = This->num_funcs; i--;)
|
for (i = This->num_funcs; i--;)
|
||||||
release_bytecode(This->funcs[i].code->bytecode);
|
release_bytecode(This->funcs[i].code->bytecode);
|
||||||
IDispatchEx_Release(&This->jsdisp->IDispatchEx_iface);
|
jsdisp_release(This->jsdisp);
|
||||||
free(This->funcs);
|
free(This->funcs);
|
||||||
free(This->vars);
|
free(This->vars);
|
||||||
free(This);
|
free(This);
|
||||||
|
@ -1850,7 +1850,7 @@ static HRESULT WINAPI DispatchEx_GetTypeInfo(IDispatchEx *iface, UINT iTInfo, LC
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Keep a ref to the props and their names */
|
/* Keep a ref to the props and their names */
|
||||||
IDispatchEx_AddRef(&This->IDispatchEx_iface);
|
jsdisp_addref(This);
|
||||||
|
|
||||||
*ppTInfo = &typeinfo->ITypeInfo_iface;
|
*ppTInfo = &typeinfo->ITypeInfo_iface;
|
||||||
return S_OK;
|
return S_OK;
|
||||||
|
|
Loading…
Reference in a new issue