Bug 334306 useless null check in nsDestroyJSPrincipals

r=dbaron sr=dveditz a=mtschrep
This commit is contained in:
timeless%mozdev.org 2008-01-06 14:53:24 +00:00
Родитель fa9eee5c9e
Коммит bf7ff19b8e
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -94,7 +94,6 @@ 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"