| Index: Source/platform/fonts/skia/FontCustomPlatformDataSkia.cpp
|
| diff --git a/Source/platform/fonts/skia/FontCustomPlatformDataSkia.cpp b/Source/platform/fonts/skia/FontCustomPlatformDataSkia.cpp
|
| index 508e5fa56c0bbd1a1c5933425d3fcd985f0b7f21..00bf96da43a4ae3d11567c3b50ba6f0f15c5b90c 100644
|
| --- a/Source/platform/fonts/skia/FontCustomPlatformDataSkia.cpp
|
| +++ b/Source/platform/fonts/skia/FontCustomPlatformDataSkia.cpp
|
| @@ -97,11 +97,11 @@ PassOwnPtr<FontCustomPlatformData> FontCustomPlatformData::create(SharedBuffer*
|
| return nullptr; // validation failed.
|
| buffer = transcodeBuffer.get();
|
|
|
| - SkAutoTUnref<SkMemoryStream> stream(new SkMemoryStream(buffer->getAsSkData().get()));
|
| + SkMemoryStream* stream = new SkMemoryStream(buffer->getAsSkData().get());
|
| #if OS(WIN)
|
| - RefPtr<SkTypeface> typeface = adoptRef(FontCache::fontCache()->fontManager()->createFromStream(stream.get()));
|
| + RefPtr<SkTypeface> typeface = adoptRef(FontCache::fontCache()->fontManager()->createFromStream(stream));
|
| #else
|
| - RefPtr<SkTypeface> typeface = adoptRef(SkTypeface::CreateFromStream(stream.get()));
|
| + RefPtr<SkTypeface> typeface = adoptRef(SkTypeface::CreateFromStream(stream));
|
| #endif
|
| if (!typeface)
|
| return nullptr;
|
|
|