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