Dmitry Timoshkov : ole32: Fix an apartment reference count leak on error path.
Alexandre Julliard
julliard at winehq.org
Thu Mar 28 15:30:23 CDT 2013
Module: wine
Branch: master
Commit: 41d3085522f795d8e7c78d1463ce79790b4f36f3
URL: http://source.winehq.org/git/wine.git/?a=commit;h=41d3085522f795d8e7c78d1463ce79790b4f36f3
Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date: Thu Mar 28 18:46:22 2013 +0900
ole32: Fix an apartment reference count leak on error path.
---
dlls/ole32/marshal.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/ole32/marshal.c b/dlls/ole32/marshal.c
index a8df28c..ddaaa53 100644
--- a/dlls/ole32/marshal.c
+++ b/dlls/ole32/marshal.c
@@ -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;
More information about the wine-cvs
mailing list