Fix for bug 401612 (Multiple dialogs (about, add-ons mgr, etc.) will not open (nsIDOMJSWindow.openDialog exception)). r=smaug, sr=jst, a=blocking1.9+ for M9.

This commit is contained in:
peterv@propagandism.org 2007-10-31 03:52:22 -07:00
parent 9ed0904e80
commit 8048d70036

View File

@ -3766,8 +3766,8 @@ nsJSArgArray::nsJSArgArray(JSContext *aContext, PRUint32 argc, jsval *argv,
for (PRUint32 i = 0; i < argc; ++i)
mArgv[i] = argv[i];
}
if (argc > 0)
*prv = NS_HOLD_JS_OBJECTS(this, nsJSArgArray);
*prv = argc > 0 ? NS_HOLD_JS_OBJECTS(this, nsJSArgArray) : NS_OK;
}
nsJSArgArray::~nsJSArgArray()