Index: src/utils/win/SkDWriteFontFileStream.cpp |
diff --git a/src/utils/win/SkDWriteFontFileStream.cpp b/src/utils/win/SkDWriteFontFileStream.cpp |
index d4bf8a2023c47c07dd7ee5cb06ad5adcce69c4a7..460f90e6c4aff8e6928eaebef5504d5e58a4490b 100644 |
--- a/src/utils/win/SkDWriteFontFileStream.cpp |
+++ b/src/utils/win/SkDWriteFontFileStream.cpp |
@@ -107,7 +107,7 @@ bool SkDWriteFontFileStream::move(long offset) { |
SkDWriteFontFileStream* SkDWriteFontFileStream::fork() const { |
SkAutoTDelete<SkDWriteFontFileStream> that(this->duplicate()); |
that->seek(fPos); |
- return that.detach(); |
+ return that.release(); |
} |
size_t SkDWriteFontFileStream::getLength() const { |
@@ -212,7 +212,7 @@ HRESULT STDMETHODCALLTYPE SkDWriteFontFileStreamWrapper::ReadFileFragment( |
} |
*fragmentStart = streamData.get(); |
- *fragmentContext = streamData.detach(); |
+ *fragmentContext = streamData.release(); |
} |
return S_OK; |
} |