| Index: Source/platform/fonts/mac/FontCacheMac.mm
|
| diff --git a/Source/platform/fonts/mac/FontCacheMac.mm b/Source/platform/fonts/mac/FontCacheMac.mm
|
| index dcb7611a1d41c1de71ae203951ec64849dfcfcdb..3f224feb8528a3c81ad57fb45709539c28e26234 100644
|
| --- a/Source/platform/fonts/mac/FontCacheMac.mm
|
| +++ b/Source/platform/fonts/mac/FontCacheMac.mm
|
| @@ -117,7 +117,8 @@ PassRefPtr<SimpleFontData> FontCache::fallbackFontForCharacter(const FontDescrip
|
| }
|
|
|
| const FontPlatformData& platformData = fontDataToSubstitute->platformData();
|
| - NSFont *nsFont = platformData.font();
|
| + const NSFont *platformDataFont = platformData.font();
|
| + NSFont* nsFont = [platformDataFont copyWithZone:NULL];
|
|
|
| NSString *string = [[NSString alloc] initWithCharactersNoCopy:codeUnits length:codeUnitsLength freeWhenDone:NO];
|
| NSFont *substituteFont = [NSFont findFontLike:nsFont forString:string withRange:NSMakeRange(0, codeUnitsLength) inLanguage:nil];
|
|
|