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:
ssu%netscape.com 2000-10-06 02:40:13 +00:00
parent ec750f6a4e
commit 0ab8b1f63c
3 changed files with 9 additions and 5 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;