Freed most of the mapTables.

This commit is contained in:
Pietro Gagliardi 2016-04-25 13:47:24 -04:00
parent 5cfcf81a67
commit 98e7afc5de
1 changed files with 7 additions and 5 deletions

View File

@ -22,12 +22,14 @@ void initAlloc(void)
void uninitAlloc(void)
{
if ([allocations count] == 0) {
NSUInteger i;
NSUInteger i;
for (i = 0; i < [delegates count]; i++)
[[delegates objectAtIndex:i] release];
[delegates release];
// delegates might have mapTables allocated
// TODO verify they are empty
for (i = 0; i < [delegates count]; i++)
[[delegates objectAtIndex:i] release];
[delegates release];
if ([allocations count] == 0) {
[allocations release];
return;
}