More expository comments and TODOs.
This commit is contained in:
parent
a516839e9d
commit
86a4b0a7ba
|
@ -67,6 +67,7 @@ void uiUninit(void)
|
||||||
{
|
{
|
||||||
uninitMenus();
|
uninitMenus();
|
||||||
// TODO free application delegate
|
// TODO free application delegate
|
||||||
|
// TODO free NSApplication resources (main menu, etc.)
|
||||||
uninitAlloc();
|
uninitAlloc();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -352,6 +352,7 @@ void uninitMenus(void)
|
||||||
{
|
{
|
||||||
if (menus == NULL)
|
if (menus == NULL)
|
||||||
return;
|
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) {
|
[menus enumerateObjectsUsingBlock:^(id obj, NSUInteger index, BOOL *stop) {
|
||||||
NSValue *v;
|
NSValue *v;
|
||||||
struct menu *m;
|
struct menu *m;
|
||||||
|
|
Loading…
Reference in New Issue