ole32: Release the standard marshal in the free-threaded marshaler's UnmarshalInterface function.

This commit is contained in:
Robert Shearman 2006-05-24 23:02:05 +01:00 committed by Alexandre Julliard
parent 4335c64f7b
commit b795631daa

View File

@ -238,6 +238,8 @@ FTMarshalImpl_UnmarshalInterface (LPMARSHAL iface, IStream * pStm, REFIID riid,
if (FAILED(hres)) return hres; if (FAILED(hres)) return hres;
hres = IMarshal_UnmarshalInterface (pMarshal, pStm, riid, ppv); hres = IMarshal_UnmarshalInterface (pMarshal, pStm, riid, ppv);
IMarshal_Release (pMarshal);
return hres;
} }
else { else {
IUnknown *object; IUnknown *object;
@ -259,8 +261,6 @@ FTMarshalImpl_UnmarshalInterface (LPMARSHAL iface, IStream * pStm, REFIID riid,
IUnknown_Release(object); IUnknown_Release(object);
return hres; return hres;
} }
return S_OK;
} }
static HRESULT WINAPI FTMarshalImpl_ReleaseMarshalData (LPMARSHAL iface, IStream * pStm) static HRESULT WINAPI FTMarshalImpl_ReleaseMarshalData (LPMARSHAL iface, IStream * pStm)