From e41820ee6c6ff65668166931bdbf65c582fbb2fe Mon Sep 17 00:00:00 2001 From: Adrian Robert Date: Mon, 15 Jun 2009 04:34:50 +0000 Subject: [PATCH] (ns_get_covering_families): Retain scriptToFamilies. --- src/ChangeLog | 1 + src/nsfont.m | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 08ac6ceac9a..cc5d3d630b0 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -9,6 +9,7 @@ (ns_has_attribute): Shrink the normal range. (ns_findfonts): Don't worry about requested spec in determining need for synthItal. + (ns_get_covering_families): Retain scriptToFamilies. 2009-06-14 Seiji Zenitani diff --git a/src/nsfont.m b/src/nsfont.m index c5e73604e7a..68ed1e6dd36 100644 --- a/src/nsfont.m +++ b/src/nsfont.m @@ -397,7 +397,7 @@ static NSSet NSLog(@"Request covering families for script: '%@'", script); if (scriptToFamilies == nil) - scriptToFamilies = [NSMutableDictionary dictionaryWithCapacity: 30]; + scriptToFamilies = [[NSMutableDictionary alloc] init]; if ((families = [scriptToFamilies objectForKey: script]) == nil) { -- 2.39.2