Commit b2edf2f0 authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

No need to add a reference to the apartment from new_stub_manager as

we don't hold on to an apartment pointer.
parent 830b58c0
...@@ -41,7 +41,6 @@ ...@@ -41,7 +41,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(ole); WINE_DEFAULT_DEBUG_CHANNEL(ole);
/* this refs the apartment on success, otherwise there is no ref */
struct stub_manager *new_stub_manager(APARTMENT *apt, IUnknown *object) struct stub_manager *new_stub_manager(APARTMENT *apt, IUnknown *object)
{ {
struct stub_manager *sm; struct stub_manager *sm;
...@@ -72,7 +71,6 @@ struct stub_manager *new_stub_manager(APARTMENT *apt, IUnknown *object) ...@@ -72,7 +71,6 @@ struct stub_manager *new_stub_manager(APARTMENT *apt, IUnknown *object)
list_add_head(&apt->stubmgrs, &sm->entry); list_add_head(&apt->stubmgrs, &sm->entry);
LeaveCriticalSection(&apt->cs); LeaveCriticalSection(&apt->cs);
COM_ApartmentAddRef(apt);
TRACE("Created new stub manager (oid=%s) at %p for object with IUnknown %p\n", wine_dbgstr_longlong(sm->oid), sm, object); TRACE("Created new stub manager (oid=%s) at %p for object with IUnknown %p\n", wine_dbgstr_longlong(sm->oid), sm, object);
return sm; return sm;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment