Merge pull request #60 from kainjow/osx-test-crash

Fix test crash on exit on OS X
This commit is contained in:
Pietro Gagliardi 2016-05-24 21:36:57 -04:00
commit 890643c5b2
1 changed files with 2 additions and 3 deletions

View File

@ -32,8 +32,7 @@ static void mapItemReleaser(void *key, void *value)
uiMenuItem *item;
item = (uiMenuItem *)value;
// TODO this crashes for me on OS X El Capitan
// [item->item release];
[item->item release];
}
@implementation menuManager
@ -52,10 +51,10 @@ static void mapItemReleaser(void *key, void *value)
- (void)dealloc
{
uninitMenus();
mapWalk(self->items, mapItemReleaser);
mapReset(self->items);
mapDestroy(self->items);
uninitMenus();
[super dealloc];
}