Changes from Bruce Mitchener Jr. <bruce@cybersight.com>:

delete vs delete[].
This commit is contained in:
dougt%netscape.com 1999-03-29 23:12:26 +00:00
parent 90d9dd6669
commit cdf0bfead2
3 changed files with 5 additions and 6 deletions

View File

@ -394,7 +394,7 @@ nsInstall::AddDirectory(const nsString& aRegName,
bInstall = PR_TRUE;
}
delete fullRegNameCString;
delete [] fullRegNameCString;
if (bInstall)
{
@ -528,7 +528,7 @@ nsInstall::AddSubcomponent(const nsString& aRegName,
if (qualifiedRegNameString != nsnull)
delete qualifiedRegNameString;
delete [] qualifiedRegNameString;
if (versionNewer)
{

View File

@ -341,7 +341,7 @@ nsInstallFile::RegisterInVersionRegistry()
}
if (vr_name != nsnull)
delete vr_name;
delete [] vr_name;
if (tempCString != nsnull)
delete [] tempCString;

View File

@ -53,7 +53,7 @@ nsInstallPatch::nsInstallPatch( nsInstall* inInstall,
nsInstallPatch( inInstall, inVRName, inVInfo, inJarLocation, nsString(tempTargetFile), "null", error);
delete tempTargetFile;
delete [] tempTargetFile;
}
@ -344,8 +344,7 @@ nsInstallPatch::HashFilePath(const nsFilePath& aPath)
// FYI: rv = rv*37 + ch
rv = ((rv << 5) + (rv << 2) + rv) + ch;
}
PR_Free(filePath);
}
return (void*)rv;
}
}