зеркало из https://github.com/mozilla/gecko-dev.git
Fix crash in ~nsCOMArrayEnumerator. Bug 181592, r=alecf, sr=scc
Original committer: bzbarsky%mit.edu Original revision: 1.5 Original date: 2002/11/26 18:57:56
This commit is contained in:
Родитель
5f16c93259
Коммит
cf81c89e30
|
@ -132,8 +132,8 @@ NS_IMPL_ISUPPORTS1(nsCOMArrayEnumerator, nsISimpleEnumerator)
|
|||
nsCOMArrayEnumerator::~nsCOMArrayEnumerator()
|
||||
{
|
||||
// only release the entries that we haven't visited yet
|
||||
while (mIndex < mArraySize) {
|
||||
NS_IF_RELEASE(mValueArray[mIndex++]);
|
||||
for (; mIndex < mArraySize; ++mIndex) {
|
||||
NS_IF_RELEASE(mValueArray[mIndex]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче