From cab0d91dfb3a3f29a7208cfbc4fc2c5537e6aee4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Dj=C3=A4rv?= Date: Wed, 20 Nov 2013 19:33:12 +0100 Subject: [PATCH] * nsterm.m (init, run, stop:): Enable again. stop calls super stop to handle dialogs. --- src/ChangeLog | 3 +++ src/nsterm.m | 7 ++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 2b22e09461f..e0ac7f298c7 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2013-11-20 Jan Djärv + * nsterm.m (init, run, stop:): Enable again. stop calls super stop + to handle dialogs. + * nsterm.m (init, run, stop:): Comment out for now, does not work with dialogs. diff --git a/src/nsterm.m b/src/nsterm.m index 991be1f0396..aa9f2af35d8 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -4367,7 +4367,6 @@ ns_term_shutdown (int sig) @implementation EmacsApp -#if 0 #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_9 - (id)init { @@ -4386,7 +4385,7 @@ ns_term_shutdown (int sig) shouldKeepRunning = YES; do - { + { [pool release]; pool = [[NSAutoreleasePool alloc] init]; @@ -4405,9 +4404,11 @@ ns_term_shutdown (int sig) - (void)stop: (id)sender { shouldKeepRunning = NO; + // Stop possible dialog also. Noop if no dialog present. + // The file dialog still leaks 7k - 10k on 10.9 though. + [super stop:sender]; } #endif -#endif - (void)logNotification: (NSNotification *)notification { -- 2.39.2