mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Changes from Bruce Mitchener Jr. <bruce@cybersight.com>:
delete vs delete[].
This commit is contained in:
parent
90d9dd6669
commit
cdf0bfead2
@ -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)
|
||||
{
|
||||
|
@ -341,7 +341,7 @@ nsInstallFile::RegisterInVersionRegistry()
|
||||
}
|
||||
|
||||
if (vr_name != nsnull)
|
||||
delete vr_name;
|
||||
delete [] vr_name;
|
||||
|
||||
if (tempCString != nsnull)
|
||||
delete [] tempCString;
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user