(fix) avoid potential but unlikely mem leak

This commit is contained in:
Ludovic Marcotte
2016-06-09 10:42:28 -04:00
parent 215f04667c
commit ff711e60b2

View File

@@ -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];