Freed most of the mapTables.
This commit is contained in:
parent
5cfcf81a67
commit
98e7afc5de
|
@ -22,12 +22,14 @@ void initAlloc(void)
|
||||||
|
|
||||||
void uninitAlloc(void)
|
void uninitAlloc(void)
|
||||||
{
|
{
|
||||||
if ([allocations count] == 0) {
|
NSUInteger i;
|
||||||
NSUInteger i;
|
|
||||||
|
|
||||||
for (i = 0; i < [delegates count]; i++)
|
// delegates might have mapTables allocated
|
||||||
[[delegates objectAtIndex:i] release];
|
// TODO verify they are empty
|
||||||
[delegates release];
|
for (i = 0; i < [delegates count]; i++)
|
||||||
|
[[delegates objectAtIndex:i] release];
|
||||||
|
[delegates release];
|
||||||
|
if ([allocations count] == 0) {
|
||||||
[allocations release];
|
[allocations release];
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue