Index: src/core/SkTypeface.cpp |
=================================================================== |
--- src/core/SkTypeface.cpp (revision 9092) |
+++ src/core/SkTypeface.cpp (working copy) |
@@ -116,8 +116,9 @@ |
if (length > 0) { |
void* addr = sk_malloc_flags(length, 0); |
if (addr) { |
- SkAutoTUnref<SkStream> localStream(SkNEW_ARGS(SkMemoryStream, |
- (addr, length, false))); |
+ SkAutoTUnref<SkMemoryStream> localStream(SkNEW(SkMemoryStream)); |
reed1
2013/05/10 16:58:09
Grrr, we should look for a clean way to say this i
|
+ localStream->setMemoryOwned(addr, length); |
+ |
if (stream->read(addr, length) == length) { |
return SkTypeface::CreateFromStream(localStream.get()); |
} else { |