From 7fdcbb53658188c4e715075209b8ae1995105db2 Mon Sep 17 00:00:00 2001 From: Kevin Wojniak Date: Tue, 24 May 2016 12:24:54 -0700 Subject: [PATCH] Fix test crash on exit on OS X --- darwin/menu.m | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/darwin/menu.m b/darwin/menu.m index f899236a..b20214ad 100644 --- a/darwin/menu.m +++ b/darwin/menu.m @@ -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]; }