(fix) avoid potential but unlikely mem leak
parent
215f04667c
commit
ff711e60b2
|
@ -157,7 +157,10 @@ _intValueFromHex (NSString *hexString)
|
||||||
}
|
}
|
||||||
|
|
||||||
max = [folders count];
|
max = [folders count];
|
||||||
|
|
||||||
|
DESTROY(calendars);
|
||||||
calendars = [[NSMutableArray alloc] initWithCapacity: max];
|
calendars = [[NSMutableArray alloc] initWithCapacity: max];
|
||||||
|
|
||||||
for (count = 0; count < max; count++)
|
for (count = 0; count < max; count++)
|
||||||
{
|
{
|
||||||
folder = [sortedFolders objectAtIndex: count];
|
folder = [sortedFolders objectAtIndex: count];
|
||||||
|
|
Loading…
Reference in New Issue