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

we don't hold on to an apartment pointer.
This commit is contained in:
Robert Shearman 2005-01-06 20:43:48 +00:00 committed by Alexandre Julliard
parent 830b58c02b
commit b2edf2f03c
1 changed files with 0 additions and 2 deletions

View File

@ -41,7 +41,6 @@
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 *sm;
@ -72,7 +71,6 @@ struct stub_manager *new_stub_manager(APARTMENT *apt, IUnknown *object)
list_add_head(&apt->stubmgrs, &sm->entry);
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);
return sm;