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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user