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/macfont.m | |
| 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/macfont.m')
| -rw-r--r-- | src/macfont.m | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/macfont.m b/src/macfont.m index d34e0332236..9b3cb2c29f6 100644 --- a/src/macfont.m +++ b/src/macfont.m | |||
| @@ -2810,6 +2810,7 @@ macfont_draw (struct glyph_string *s, int from, int to, int x, int y, | |||
| 2810 | 2810 | ||
| 2811 | 2811 | ||
| 2812 | xfree (glyphs); | 2812 | xfree (glyphs); |
| 2813 | xfree (positions); | ||
| 2813 | CGContextRestoreGState (context); | 2814 | CGContextRestoreGState (context); |
| 2814 | 2815 | ||
| 2815 | unblock_input (); | 2816 | unblock_input (); |