mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-22 02:09:28 +00:00
Fixed refcount problem in Clone.
This commit is contained in:
parent
dc528f8358
commit
e29ca073a9
@ -244,6 +244,7 @@ nsStandardURL::Clone(nsIURI* *result)
|
||||
if (url->mSpec == nsnull)
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
*result = url;
|
||||
NS_ADDREF(url);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user