diff options
| author | Jan Djärv | 2014-06-11 19:57:51 +0200 |
|---|---|---|
| committer | Jan Djärv | 2014-06-11 19:57:51 +0200 |
| commit | b765f1fe83a0df149ad783f7dae8ea01f71e680d (patch) | |
| tree | 0127dee3bd4121488daf5162de9f4140e8517b9e /src/nsterm.h | |
| parent | 15684f524b58e19fc7d44b09db0d15a8f582118a (diff) | |
| download | emacs-b765f1fe83a0df149ad783f7dae8ea01f71e680d.tar.gz emacs-b765f1fe83a0df149ad783f7dae8ea01f71e680d.zip | |
Fix memory leaks
* macfont.m (macfont_draw): positions where not freed.
* nsterm.h (EmacsApp): Always compile in shouldKeepRunning, isFirst
on Cocoa.
* nsterm.m (run): Always compile for Cocoa. Use runtime check to
determine 10.9.
Fixes: debbugs:17751
Diffstat (limited to 'src/nsterm.h')
| -rw-r--r-- | src/nsterm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nsterm.h b/src/nsterm.h index d2c42c553d9..e77aca3d50d 100644 --- a/src/nsterm.h +++ b/src/nsterm.h | |||
| @@ -100,7 +100,7 @@ typedef float EmacsCGFloat; | |||
| 100 | /* We override sendEvent: as a means to stop/start the event loop */ | 100 | /* We override sendEvent: as a means to stop/start the event loop */ |
| 101 | @interface EmacsApp : NSApplication | 101 | @interface EmacsApp : NSApplication |
| 102 | { | 102 | { |
| 103 | #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_9 | 103 | #ifdef NS_IMPL_COCOA |
| 104 | BOOL shouldKeepRunning; | 104 | BOOL shouldKeepRunning; |
| 105 | BOOL isFirst; | 105 | BOOL isFirst; |
| 106 | #endif | 106 | #endif |