Index: sky/engine/platform/fonts/skia/FontCustomPlatformDataSkia.cpp |
diff --git a/sky/engine/platform/fonts/skia/FontCustomPlatformDataSkia.cpp b/sky/engine/platform/fonts/skia/FontCustomPlatformDataSkia.cpp |
index c675bc0830d24afb22232c4536c49cb9ac197561..dd0434308caaf871c6db534cd47c36f7951c161b 100644 |
--- a/sky/engine/platform/fonts/skia/FontCustomPlatformDataSkia.cpp |
+++ b/sky/engine/platform/fonts/skia/FontCustomPlatformDataSkia.cpp |
@@ -69,8 +69,8 @@ PassOwnPtr<FontCustomPlatformData> FontCustomPlatformData::create(SharedBuffer* |
return nullptr; // validation failed. |
buffer = transcodeBuffer.get(); |
- RefPtr<SkMemoryStream> stream = adoptRef(new SkMemoryStream(buffer->getAsSkData().get())); |
- RefPtr<SkTypeface> typeface = adoptRef(SkTypeface::CreateFromStream(stream.get())); |
+ SkMemoryStream* stream = new SkMemoryStream(buffer->getAsSkData().get()); |
+ RefPtr<SkTypeface> typeface = adoptRef(SkTypeface::CreateFromStream(stream)); |
if (!typeface) |
return nullptr; |