(fix) avoid potential but unlikely mem leak

pull/213/head
Ludovic Marcotte 2016-06-09 10:42:28 -04:00
parent 215f04667c
commit ff711e60b2
1 changed files with 3 additions and 0 deletions

View File

@ -157,7 +157,10 @@ _intValueFromHex (NSString *hexString)
}
max = [folders count];
DESTROY(calendars);
calendars = [[NSMutableArray alloc] initWithCapacity: max];
for (count = 0; count < max; count++)
{
folder = [sortedFolders objectAtIndex: count];