fixing bug #54067 - Clean up purify errors in Xpinstall engine. r=dveditz, sr=mscott
git-svn-id: svn://10.0.0.236/trunk@80548 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
ec750f6a4e
commit
0ab8b1f63c
@ -957,7 +957,7 @@ nsInstallFileOpItem::NativeFileOpFileExecuteComplete()
|
||||
mTarget->Spawn((const char **)&cParams[0], 1);
|
||||
|
||||
if(cParams[0])
|
||||
delete(cParams[0]);
|
||||
Recycle(cParams[0]);
|
||||
|
||||
// We don't care if it succeeded or not since we
|
||||
// don't wait for the process to end anyways.
|
||||
@ -1279,9 +1279,9 @@ nsInstallFileOpItem::NativeFileOpWindowsShortcutComplete()
|
||||
}
|
||||
|
||||
if(cDescription)
|
||||
delete(cDescription);
|
||||
Recycle(cDescription);
|
||||
if(cParams)
|
||||
delete(cParams);
|
||||
Recycle(cParams);
|
||||
#endif
|
||||
|
||||
return ret;
|
||||
|
||||
@ -88,7 +88,9 @@ char* nsWinProfileItem::toString()
|
||||
result->AppendWithConversion("=");
|
||||
result->Append(*mValue);
|
||||
|
||||
resultCString = result->ToNewCString();
|
||||
resultCString = new char[result->Length() + 1];
|
||||
if(resultCString != nsnull)
|
||||
result->ToCString(resultCString, result->Length() + 1);
|
||||
|
||||
if (result) delete result;
|
||||
if (filename) delete filename;
|
||||
|
||||
@ -185,7 +185,9 @@ char* nsWinRegItem::toString()
|
||||
if (result)
|
||||
{
|
||||
result->Append(*keyString);
|
||||
resultCString = result->ToNewCString();
|
||||
resultCString = new char[result->Length() + 1];
|
||||
if(resultCString != nsnull)
|
||||
result->ToCString(resultCString, result->Length() + 1);
|
||||
}
|
||||
|
||||
if (keyString) delete keyString;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user