Use nsCRT::free() instead of delete[] for char* data.
git-svn-id: svn://10.0.0.236/trunk@45850 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user