зеркало из https://github.com/mozilla/pjs.git
Bug 309430 - "potential oom crash [@ xptiInterfaceInfoManager::GetInterfaceInfoManagerNoAddRef]" [p=dewildt@gmail.com (Daniel de Wildt) / ryanvm@gmail.com (Ryan VanderMeulen) r=dougt a1.9=schrep]
This commit is contained in:
Родитель
354a6aa363
Коммит
bf272f3234
|
@ -69,8 +69,14 @@ xptiInterfaceInfoManager::GetInterfaceInfoManagerNoAddRef()
|
|||
}
|
||||
|
||||
gInterfaceInfoManager = new xptiInterfaceInfoManager(searchPath);
|
||||
if(gInterfaceInfoManager)
|
||||
NS_ADDREF(gInterfaceInfoManager);
|
||||
if(!gInterfaceInfoManager)
|
||||
{
|
||||
NS_ERROR("can't instantiate xptiInterfaceInfoManager");
|
||||
return nsnull;
|
||||
}
|
||||
|
||||
NS_ADDREF(gInterfaceInfoManager);
|
||||
|
||||
if(!gInterfaceInfoManager->IsValid())
|
||||
{
|
||||
NS_RELEASE(gInterfaceInfoManager);
|
||||
|
|
Загрузка…
Ссылка в новой задаче