fix 71324 . delete mList so we won't leak in IME code.

r=nhotta sr=jst
This commit is contained in:
ftang%netscape.com 2001-03-09 13:47:17 +00:00
parent c5025f2e7d
commit 061c1a8efb

View File

@ -87,8 +87,12 @@ nsPrivateTextRangeList::nsPrivateTextRangeList(PRUint16 aLength,nsIPrivateTextRa
nsPrivateTextRangeList::~nsPrivateTextRangeList(void)
{
int i;
for(i=0;i<mLength;i++)
mList[i]->Release();
if(mList) {
for(i=0;i<mLength;i++)
mList[i]->Release();
delete [] mList;
}
}
NS_IMPL_ISUPPORTS1(nsPrivateTextRangeList, nsIPrivateTextRangeList)