Use nsCRT::free() instead of delete[] for char* data.

This commit is contained in:
bruce@cybersight.com
1999-09-03 07:42:41 +00:00
parent 72245c4444
commit 1f6b1f31af
5 changed files with 9 additions and 9 deletions

View File

@@ -704,7 +704,7 @@ nsHTMLFramesetFrame::ParseRowColSpec(nsString& aSpec,
//aValues[i] = nsCRT::atoi(token); XXX this is broken, consequently the next 3 lines?
char* tokenIso = token.ToNewCString();
aSpecs[i].mValue = atoi(tokenIso);
delete [] tokenIso;
nsCRT::free(tokenIso);
if (eFramesetUnit_Percent == aSpecs[i].mUnit) {
if (aSpecs[i].mValue <= 0) {
aSpecs[i].mValue = 100 / count;