Make sure all native resources get freed on exit
This commit is contained in:
parent
07c55f321f
commit
d56b34de3b
11 changed files with 56 additions and 17 deletions
|
@ -18,6 +18,11 @@ namespace api {
|
|||
MenuMac::MenuMac() {
|
||||
}
|
||||
|
||||
void MenuMac::Destroy() {
|
||||
menu_controller_.reset();
|
||||
Menu::Destroy();
|
||||
}
|
||||
|
||||
void MenuMac::Popup(Window* window) {
|
||||
NativeWindow* native_window = window->window();
|
||||
if (!native_window)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue