Fix proxied objects leak. r=sfraser, bug=15380

This commit is contained in:
beard%netscape.com 1999-10-30 01:17:24 +00:00
Родитель c4acf56faf
Коммит 0f2e6ac1be
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -181,12 +181,12 @@ nsProxyObjectManager::GetProxyObject(nsIEventQueue *destQueue, REFNSIID aIID, ns
}
}
nsISupports *realObject;
nsCOMPtr<nsISupports> realObject;
// we need to do make sure that we addref the passed in object as well as ensure
// that it is of the requested IID;
rv = aObj->QueryInterface(aIID, (void**)&realObject);
rv = aObj->QueryInterface(aIID, getter_AddRefs(realObject));
if ( NS_FAILED( rv ) )
return rv;