From fd1a6aa8d029c701b1532efa59ce901109cfc216 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 11 Aug 2014 20:01:37 -0400 Subject: [PATCH] [coretext] Minor --- src/hb-coretext.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hb-coretext.cc b/src/hb-coretext.cc index 6aab1d8c3..8081bfc68 100644 --- a/src/hb-coretext.cc +++ b/src/hb-coretext.cc @@ -678,7 +678,8 @@ retry: /* Create an attributed string, populate it, and create a line from it, then release attributed string. */ { - CFMutableAttributedStringRef attr_string = CFAttributedStringCreateMutable (NULL, chars_len); + CFMutableAttributedStringRef attr_string = CFAttributedStringCreateMutable (kCFAllocatorDefault, + chars_len); if (unlikely (!attr_string)) FAIL ("CFAttributedStringCreateMutable failed"); CFAttributedStringReplaceString (attr_string, CFRangeMake (0, 0), string_ref);