зеркало из https://github.com/mozilla/gecko-dev.git
Fix proxied objects leak. r=sfraser, bug=15380
This commit is contained in:
Родитель
c4acf56faf
Коммит
0f2e6ac1be
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче