mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
Bug 1204610 - Use a smart pointer in nsNullPrincipalURI. r=mrbkap
This commit is contained in:
parent
a48fdcad15
commit
dd7dd30236
@ -274,12 +274,11 @@ NS_IMETHODIMP
|
||||
nsNullPrincipalURI::Equals(nsIURI *aOther, bool *_equals)
|
||||
{
|
||||
*_equals = false;
|
||||
nsNullPrincipalURI *otherURI;
|
||||
nsRefPtr<nsNullPrincipalURI> otherURI;
|
||||
nsresult rv = aOther->QueryInterface(kNullPrincipalURIImplementationCID,
|
||||
(void **)&otherURI);
|
||||
getter_AddRefs(otherURI));
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
*_equals = mPath == otherURI->mPath;
|
||||
NS_RELEASE(otherURI);
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user