зеркало из 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
|
#else
|
||||||
nsjsprin->refcount++;
|
nsjsprin->refcount++;
|
||||||
#endif
|
#endif
|
||||||
if (nsjsprin->nsIPrincipalPtr)
|
nsjsprin->nsIPrincipalPtr->Release();
|
||||||
nsjsprin->nsIPrincipalPtr->Release();
|
|
||||||
// The nsIPrincipal that we release owns the JSPrincipal struct,
|
// The nsIPrincipal that we release owns the JSPrincipal struct,
|
||||||
// so we don't need to worry about "codebase"
|
// so we don't need to worry about "codebase"
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче