ole32: Fix an apartment reference count leak on error path.

This commit is contained in:
Dmitry Timoshkov 2013-03-28 18:46:22 +09:00 committed by Alexandre Julliard
parent 4fba2995b6
commit 41d3085522
1 changed files with 1 additions and 0 deletions

View File

@ -1437,6 +1437,7 @@ StdMarshalImpl_ReleaseMarshalData(LPMARSHAL iface, IStream *pStm)
if (!(stubmgr = get_stub_manager(apt, stdobjref.oid)))
{
apartment_release(apt);
ERR("could not map object ID to stub manager, oxid=%s, oid=%s\n",
wine_dbgstr_longlong(stdobjref.oxid), wine_dbgstr_longlong(stdobjref.oid));
return RPC_E_INVALID_OBJREF;