From d64a4984c147d0c4550aa1e9e3b9a5db10b3de6a Mon Sep 17 00:00:00 2001 From: Dmitry Antipov Date: Tue, 8 Jul 2014 18:19:34 +0400 Subject: [PATCH] * nsfont.m (nsfont_close): Free glyphs and metrics arrays as well. --- src/ChangeLog | 1 + src/nsfont.m | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index c3ff9eb3a14..8e79414feaf 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -5,6 +5,7 @@ Avoid Faref and assume that args are always valid. This helps to speedup search, which is especially important for a huge buffers. * lisp.h (char_table_translate): Remove prototype. + * nsfont.m (nsfont_close): Free glyphs and metrics arrays as well. 2014-07-08 Paul Eggert diff --git a/src/nsfont.m b/src/nsfont.m index cadc68f9933..4ed45991b93 100644 --- a/src/nsfont.m +++ b/src/nsfont.m @@ -945,6 +945,8 @@ nsfont_close (struct font *font) xfree (font_info->glyphs[i]); xfree (font_info->metrics[i]); } + xfree (font_info->glyphs); + xfree (font_info->metrics); [font_info->nsfont release]; #ifdef NS_IMPL_COCOA CGFontRelease (font_info->cgfont); -- 2.39.5