checking in for scc.

bug #85271: sr=waterson, r={beard, jag, dbaron}, a=asa. Eliminate
features of |nsXPIDLC?String| that keep it out of the string hierarchy
(i.e., using assigment to rebind ownership, static |Copy| members, and
|getter_Shares|), fixing some leaks in the process.
This commit is contained in:
bryner%uiuc.edu 2001-06-17 06:30:23 +00:00
parent a5e3f194e4
commit 844f8c5e95

View File

@ -173,7 +173,7 @@ nsNSSSocketInfo::SetFirstWrite(PRBool aFirstWrite)
nsresult
nsNSSSocketInfo::SetHostName(const char* host)
{
mHostName = host;
mHostName.Adopt(nsCRT::strdup(host));
return NS_OK;
}
@ -201,7 +201,7 @@ nsNSSSocketInfo::GetPort(PRInt32 *aPort)
nsresult
nsNSSSocketInfo::SetProxyHost(const char* aProxyHost)
{
mProxyHostName = aProxyHost;
mProxyHostName.Adopt(nsCRT::strdup(aProxyHost));
return NS_OK;
}