Fixed a leak where child SHEntry were not being released when the parent SHEntry was deleted.
This commit is contained in:
Родитель
7325db3c30
Коммит
05d1775b1e
|
@ -35,6 +35,16 @@ nsSHEntry::nsSHEntry()
|
|||
|
||||
nsSHEntry::~nsSHEntry()
|
||||
{
|
||||
// Release the references to any child entries...
|
||||
PRInt32 i, childCount = mChildren.Count();
|
||||
for (i=0; i<childCount; i++) {
|
||||
nsISHEntry* child;
|
||||
|
||||
child = (nsISHEntry*) mChildren.ElementAt(i);
|
||||
NS_IF_RELEASE(child);
|
||||
}
|
||||
|
||||
mChildren.Clear();
|
||||
}
|
||||
|
||||
//*****************************************************************************
|
||||
|
|
Загрузка…
Ссылка в новой задаче