mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-19 07:26:26 +00:00
fix 71324 . delete mList so we won't leak in IME code.
r=nhotta sr=jst
This commit is contained in:
parent
c5025f2e7d
commit
061c1a8efb
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user