Index: Source/platform/fonts/mac/FontCustomPlatformDataMac.cpp |
diff --git a/Source/platform/fonts/mac/FontCustomPlatformDataMac.cpp b/Source/platform/fonts/mac/FontCustomPlatformDataMac.cpp |
index 3be7d1910b6c2101381eacddb0f805006d9a2f7a..cf6530a590d1a7e86983e58a63bc589e94c9f092 100644 |
--- a/Source/platform/fonts/mac/FontCustomPlatformDataMac.cpp |
+++ b/Source/platform/fonts/mac/FontCustomPlatformDataMac.cpp |
@@ -63,8 +63,7 @@ PassOwnPtr<FontCustomPlatformData> FontCustomPlatformData::create(SharedBuffer* |
if (!cgFontRef) |
return nullptr; |
- SkAutoTUnref<SkMemoryStream> stream(new SkMemoryStream(buffer->getAsSkData().get())); |
- RefPtr<SkTypeface> typeface = adoptRef(SkTypeface::CreateFromStream(stream.get())); |
+ RefPtr<SkTypeface> typeface = adoptRef(SkTypeface::CreateFromStream(new SkMemoryStream(buffer->getAsSkData().get()))); |
if (!typeface) |
return nullptr; |