| Index: Source/platform/fonts/mac/FontCacheMac.mm
|
| diff --git a/Source/platform/fonts/mac/FontCacheMac.mm b/Source/platform/fonts/mac/FontCacheMac.mm
|
| index ef8862c10067b78ed1e70e426fdb06014db97790..1839bca0b8ed0e44ce717998eecfd26c8f11256f 100644
|
| --- a/Source/platform/fonts/mac/FontCacheMac.mm
|
| +++ b/Source/platform/fonts/mac/FontCacheMac.mm
|
| @@ -197,7 +197,9 @@ FontPlatformData* FontCache::createFontPlatformData(const FontDescription& fontD
|
| NSInteger weight = toAppKitFontWeight(fontDescription.weight());
|
| float size = fontSize;
|
|
|
| - NSFont *nsFont = [WebFontCache fontWithFamily:family traits:traits weight:weight size:size];
|
| + NSString *nsFontFamily = [[NSString alloc] initWithUTF8String:family.utf8().data()];
|
| + NSFont *nsFont = [WebFontCache fontWithFamily:nsFontFamily traits:traits weight:weight size:size];
|
| + [nsFontFamily release];
|
| if (!nsFont)
|
| return 0;
|
|
|
|
|