mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-02-17 07:33:57 +00:00
(fix) avoid potential but unlikely mem leak
This commit is contained in:
@@ -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];
|
||||||
|
|||||||
Reference in New Issue
Block a user