mac: Release application delegate on exit

This commit is contained in:
Cheng Zhao 2014-11-17 09:52:24 +08:00
parent 0e94977d42
commit 6aa69a06c8

View file

@ -41,7 +41,8 @@ void AtomBrowserMainParts::PreMainMessageLoopStart() {
} }
void AtomBrowserMainParts::PostDestroyThreads() { void AtomBrowserMainParts::PostDestroyThreads() {
[[AtomApplication sharedApplication] setDelegate:nil]; [[NSApp delegate] release];
[NSApp setDelegate:nil];
} }
} // namespace atom } // namespace atom