Index: src/device/xps/SkXPSDevice.cpp |
diff --git a/src/device/xps/SkXPSDevice.cpp b/src/device/xps/SkXPSDevice.cpp |
index df2cdd9b6187374948c1c24ad43951a0a598a650..c1105a2e94c034eb6b0dac5aee6bc20ad5fa5d4b 100644 |
--- a/src/device/xps/SkXPSDevice.cpp |
+++ b/src/device/xps/SkXPSDevice.cpp |
@@ -401,7 +401,7 @@ static HRESULT subset_typeface(SkXPSDevice::TypefaceUse* current) { |
fontPackageBuffer.realloc(bytesWritten); |
} |
- SkAutoTUnref<SkMemoryStream> newStream(new SkMemoryStream()); |
+ SkAutoTDelete<SkMemoryStream> newStream(new SkMemoryStream()); |
newStream->setMemoryOwned(fontPackageBuffer.detach(), bytesWritten + extra); |
SkTScopedComPtr<IStream> newIStream; |