| Index: third_party/WebKit/Source/platform/fonts/linux/FontCacheLinux.cpp
|
| diff --git a/third_party/WebKit/Source/platform/fonts/linux/FontCacheLinux.cpp b/third_party/WebKit/Source/platform/fonts/linux/FontCacheLinux.cpp
|
| index 9402edee7ccc79a777437bc763abf59ecbb499a0..630fb24d207c9570cc1839ffd86d7f53352b8b31 100644
|
| --- a/third_party/WebKit/Source/platform/fonts/linux/FontCacheLinux.cpp
|
| +++ b/third_party/WebKit/Source/platform/fonts/linux/FontCacheLinux.cpp
|
| @@ -134,10 +134,11 @@ PassRefPtr<SimpleFontData> FontCache::fallbackFontForCharacter(
|
| FontPlatformData* substitutePlatformData = getFontPlatformData(description, creationParams);
|
| if (!substitutePlatformData)
|
| return nullptr;
|
| - FontPlatformData platformData = FontPlatformData(*substitutePlatformData);
|
| - platformData.setSyntheticBold(shouldSetSyntheticBold);
|
| - platformData.setSyntheticItalic(shouldSetSyntheticItalic);
|
| - return fontDataFromFontPlatformData(&platformData, DoNotRetain);
|
| +
|
| + std::unique_ptr<FontPlatformData> platformData(new FontPlatformData(*substitutePlatformData));
|
| + platformData->setSyntheticBold(shouldSetSyntheticBold);
|
| + platformData->setSyntheticItalic(shouldSetSyntheticItalic);
|
| + return fontDataFromFontPlatformData(platformData.get(), DoNotRetain);
|
| }
|
|
|
| #endif // !OS(ANDROID)
|
|
|