Index: src/xps/SkXPSDevice.cpp |
diff --git a/src/xps/SkXPSDevice.cpp b/src/xps/SkXPSDevice.cpp |
index e4ac2aa74229bca7f52abe170a498bf05270f105..5d12c499ed2891230cce75c7c318e1f2f464595a 100644 |
--- a/src/xps/SkXPSDevice.cpp |
+++ b/src/xps/SkXPSDevice.cpp |
@@ -420,10 +420,10 @@ static HRESULT subset_typeface(SkXPSDevice::TypefaceUse* current) { |
} |
SkAutoTDelete<SkMemoryStream> newStream(new SkMemoryStream()); |
- newStream->setMemoryOwned(fontPackageBuffer.detach(), bytesWritten + extra); |
+ newStream->setMemoryOwned(fontPackageBuffer.release(), bytesWritten + extra); |
SkTScopedComPtr<IStream> newIStream; |
- SkIStream::CreateFromSkStream(newStream.detach(), true, &newIStream); |
+ SkIStream::CreateFromSkStream(newStream.release(), true, &newIStream); |
XPS_FONT_EMBEDDING embedding; |
HRM(current->xpsFont->GetEmbeddingOption(&embedding), |