зеркало из https://github.com/mozilla/gecko-dev.git
fixing memory leak. my bad what was i thinking. forgot to delete the new nsDOMSelection instantiations inside nsRangeList::nsRangeList
This commit is contained in:
Родитель
610e07e279
Коммит
2cdaacd69a
|
@ -507,6 +507,11 @@ nsRangeList::~nsRangeList()
|
|||
NS_IF_RELEASE(sCellAtom);
|
||||
NS_IF_RELEASE(sTbodyAtom);
|
||||
}
|
||||
PRInt32 i;
|
||||
for (i = 0;i<NUM_SELECTIONTYPES;i++){
|
||||
if (mDomSelections[i])
|
||||
delete mDomSelections[i];
|
||||
}
|
||||
sInstanceCount--;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче