mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-29 02:07:36 +00:00
Monotone-Parent: 94ff9caef87cde7157655b9f398a4481c6bf5b72
Monotone-Revision: 93bb2c6945d08d009e60e0b6280976b86b0b0aaf Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-06-03T23:06:52 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -761,7 +761,7 @@ _computeBlockPosition (NSArray *block)
|
||||
max = [block count];
|
||||
event = [block objectAtIndex: 0];
|
||||
siblings = [[event objectForKey: @"siblings"] unsignedIntValue];
|
||||
positions = calloc (siblings, sizeof (NSMutableDictionary *));
|
||||
positions = NSZoneCalloc (NULL, siblings, sizeof (NSMutableDictionary *));
|
||||
|
||||
for (count = 0; count < max; count++)
|
||||
{
|
||||
@@ -780,7 +780,7 @@ _computeBlockPosition (NSArray *block)
|
||||
}
|
||||
}
|
||||
|
||||
free (positions);
|
||||
NSZoneFree (NULL, positions);
|
||||
}
|
||||
|
||||
// static inline void
|
||||
@@ -831,7 +831,7 @@ _computeBlocksPosition (NSArray *blocks)
|
||||
block = [blocks objectAtIndex: count];
|
||||
_computeBlockPosition (block);
|
||||
// _addBlockMultipliers (block, positions);
|
||||
// free (positions);
|
||||
// NSZoneFree (NULL, positions);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user