Bug 96108: Bustage noticed by mscott in checkin (would crash). jst and

waterson say go for it.


git-svn-id: svn://10.0.0.236/trunk@110945 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rjesup%wgate.com
2001-12-21 01:54:59 +00:00
parent 9eb5ae7fad
commit 80f81c131b

View File

@@ -1727,9 +1727,10 @@ nsIMAPMessagePartIDArray::~nsIMAPMessagePartIDArray()
void nsIMAPMessagePartIDArray::RemoveAndFreeAll()
{
while (Count() > 0)
int n = Count();
for (int i = 0; i < n; i++)
{
nsIMAPMessagePartID *part = GetPart(0);
nsIMAPMessagePartID *part = GetPart(i);
delete part;
}
Clear();