зеркало из https://github.com/mozilla/pjs.git
Bug 334306 useless null check in nsDestroyJSPrincipals
r=dbaron sr=dveditz a=mtschrep
This commit is contained in:
Родитель
fa9eee5c9e
Коммит
bf7ff19b8e
|
@ -94,8 +94,7 @@ nsDestroyJSPrincipals(JSContext *cx, struct JSPrincipals *jsprin)
|
|||
#else
|
||||
nsjsprin->refcount++;
|
||||
#endif
|
||||
if (nsjsprin->nsIPrincipalPtr)
|
||||
nsjsprin->nsIPrincipalPtr->Release();
|
||||
nsjsprin->nsIPrincipalPtr->Release();
|
||||
// The nsIPrincipal that we release owns the JSPrincipal struct,
|
||||
// so we don't need to worry about "codebase"
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче