Bug 248216 - Mismatched new[]/delete in nsTextFrame.cpp.

r/sr=dbaron@dbaron.org
This commit is contained in:
pkw@us.ibm.com
2004-06-23 16:38:38 +00:00
parent 4ac48ab719
commit 3cb5536f94
2 changed files with 4 additions and 4 deletions

View File

@@ -1068,7 +1068,7 @@ DrawSelectionIterator::DrawSelectionIterator(nsIContent *aContent,
}
if (!mInit && mTypes) //we have details but none that we care about.
{
delete mTypes;
delete [] mTypes;
mTypes = nsnull;
mDone = PR_TRUE;//we are finished
}
@@ -1089,7 +1089,7 @@ DrawSelectionIterator::DrawSelectionIterator(nsIContent *aContent,
DrawSelectionIterator::~DrawSelectionIterator()
{
if (mTypes)
delete mTypes;
delete [] mTypes;
}
void