]> git.eshelyaron.com Git - emacs.git/commitdiff
* nsfont.m (nsfont_close): Free glyphs and metrics arrays as well.
authorDmitry Antipov <dmantipov@yandex.ru>
Tue, 8 Jul 2014 14:19:34 +0000 (18:19 +0400)
committerDmitry Antipov <dmantipov@yandex.ru>
Tue, 8 Jul 2014 14:19:34 +0000 (18:19 +0400)
src/ChangeLog
src/nsfont.m

index c3ff9eb3a14a24f2442b63c7ba00548509a738b3..8e79414feaf761e98808cc8103533cd8e018d1c7 100644 (file)
@@ -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  <eggert@cs.ucla.edu>
 
index cadc68f99339e9796d97cc87e77780445203e3e4..4ed45991b935b5b67ad1a2180de4d5af0f82aa5d 100644 (file)
@@ -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);