mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-02 22:37:50 +00:00
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:
parent
f15fc5b39e
commit
fabd10b530
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user