зеркало из https://github.com/mozilla/gecko-dev.git
Bug 609574 - Crasher (also ASSERTION: invalid array index: 'i < Length()', file nsTArray.h). r=surkov,neil a=blocking2.0
This commit is contained in:
Родитель
706087d0e6
Коммит
a831df5abb
|
@ -679,8 +679,10 @@ nsDocAccessible::Shutdown()
|
|||
mParent->RemoveChild(this);
|
||||
}
|
||||
|
||||
PRUint32 childDocCount = mChildDocuments.Length();
|
||||
for (PRUint32 idx = 0; idx < childDocCount; idx++)
|
||||
// Walk the array backwards because child documents remove themselves from the
|
||||
// array as they are shutdown.
|
||||
PRInt32 childDocCount = mChildDocuments.Length();
|
||||
for (PRInt32 idx = childDocCount - 1; idx >= 0; idx--)
|
||||
mChildDocuments[idx]->Shutdown();
|
||||
|
||||
mChildDocuments.Clear();
|
||||
|
|
Загрузка…
Ссылка в новой задаче