More expository comments and TODOs.

This commit is contained in:
Pietro Gagliardi 2015-05-08 20:34:57 -04:00
parent a516839e9d
commit 86a4b0a7ba
2 changed files with 2 additions and 0 deletions

View File

@ -67,6 +67,7 @@ void uiUninit(void)
{
uninitMenus();
// TODO free application delegate
// TODO free NSApplication resources (main menu, etc.)
uninitAlloc();
}

View File

@ -352,6 +352,7 @@ void uninitMenus(void)
{
if (menus == NULL)
return;
// don't worry about the actual NSMenus and NSMenuItems; they'll be freed when we clean up the NSApplication
[menus enumerateObjectsUsingBlock:^(id obj, NSUInteger index, BOOL *stop) {
NSValue *v;
struct menu *m;