mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1204610 - Use a smart pointer in nsNullPrincipalURI. r=mrbkap
This commit is contained in:
parent
10a37439c6
commit
352bdbd5e4
@ -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