Fix test crash on exit on OS X
This commit is contained in:
parent
095e08bc79
commit
7fdcbb5365
|
@ -32,8 +32,7 @@ static void mapItemReleaser(void *key, void *value)
|
||||||
uiMenuItem *item;
|
uiMenuItem *item;
|
||||||
|
|
||||||
item = (uiMenuItem *)value;
|
item = (uiMenuItem *)value;
|
||||||
// TODO this crashes for me on OS X El Capitan
|
[item->item release];
|
||||||
// [item->item release];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@implementation menuManager
|
@implementation menuManager
|
||||||
|
@ -52,10 +51,10 @@ static void mapItemReleaser(void *key, void *value)
|
||||||
|
|
||||||
- (void)dealloc
|
- (void)dealloc
|
||||||
{
|
{
|
||||||
uninitMenus();
|
|
||||||
mapWalk(self->items, mapItemReleaser);
|
mapWalk(self->items, mapItemReleaser);
|
||||||
mapReset(self->items);
|
mapReset(self->items);
|
||||||
mapDestroy(self->items);
|
mapDestroy(self->items);
|
||||||
|
uninitMenus();
|
||||||
[super dealloc];
|
[super dealloc];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue