mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-18 14:56:07 +00:00
Don't AddRef is *aResult is nsnull.
This commit is contained in:
parent
7a9d594eeb
commit
8ed7447f2f
@ -125,7 +125,7 @@ nsLocalURI2Server(const char* uriStr,
|
||||
delete[] hostname;
|
||||
|
||||
*aResult = server;
|
||||
NS_ADDREF(*aResult);
|
||||
NS_IF_ADDREF(*aResult);
|
||||
|
||||
return rv;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user