delete vs. delete[] vs. free fixes.

Thanks to "Bruce Mitchener, Jr." <bruce@cybersight.com for finding all these
and making patches.


git-svn-id: svn://10.0.0.236/trunk@25592 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
ramiro%netscape.com
1999-03-30 05:26:59 +00:00
parent abde8984f1
commit 52ef5e02cd
24 changed files with 87 additions and 55 deletions

View File

@@ -821,7 +821,7 @@ nsNetlibService::SetProxyHTTP(nsString& aProxyHTTP) {
return NS_FALSE;
csPort = nsSPort.ToNewCString();
if (!csPort) {
delete proxy;
delete[] proxy;
return NS_FALSE;
}
@@ -833,8 +833,8 @@ nsNetlibService::SetProxyHTTP(nsString& aProxyHTTP) {
if ( PREF_OK != PREF_SetIntPref(pref_proxyHttpPort, port) ) {
rv = NS_FALSE;
}
delete proxy;
delete csPort;
delete[] proxy;
delete[] csPort;
NET_SelectProxyStyle(PROXY_STYLE_MANUAL);