]> khamidou — GitHub mirrors - electron.git/commitdiff
mac: Release application delegate on exit
authorCheng Zhao <zcbenz@gmail.com>
Mon, 17 Nov 2014 01:52:24 +0000 (09:52 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Mon, 17 Nov 2014 01:52:24 +0000 (09:52 +0800)
atom/browser/atom_browser_main_parts_mac.mm

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