From b765f1fe83a0df149ad783f7dae8ea01f71e680d Mon Sep 17 00:00:00 2001 From: Jan Djärv Date: Wed, 11 Jun 2014 19:57:51 +0200 Subject: 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 --- src/macfont.m | 1 + 1 file changed, 1 insertion(+) (limited to 'src/macfont.m') 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, xfree (glyphs); + xfree (positions); CGContextRestoreGState (context); unblock_input (); -- cgit v1.2.1