зеркало из https://github.com/mozilla/pjs.git
Fixing crasher regression bug 233953. Removing extra Release() call that causes a crash due to an unbalanced refcount. r=danm-moz@comcast.net, sr=dougt@meer.net, a=chofmann@mozilla.org
This commit is contained in:
Родитель
3aaa71fc3e
Коммит
52a8522b32
|
@ -89,17 +89,12 @@ nsInstallTrigger::GetScriptObject(nsIScriptContext *aContext, void** aScriptObje
|
|||
|
||||
if (nsnull == mScriptObject)
|
||||
{
|
||||
nsIScriptGlobalObject *global = aContext->GetGlobalObject();
|
||||
|
||||
res = NS_NewScriptInstallTriggerGlobal( aContext,
|
||||
(nsISupports *)(nsIDOMInstallTriggerGlobal*)this,
|
||||
(nsISupports *)global,
|
||||
&mScriptObject);
|
||||
NS_IF_RELEASE(global);
|
||||
|
||||
res = NS_NewScriptInstallTriggerGlobal(aContext,
|
||||
(nsIDOMInstallTriggerGlobal*)this,
|
||||
aContext->GetGlobalObject(),
|
||||
&mScriptObject);
|
||||
}
|
||||
|
||||
|
||||
*aScriptObject = mScriptObject;
|
||||
return res;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче