Index: src/utils/win/SkDWriteFontFileStream.cpp |
diff --git a/src/utils/win/SkDWriteFontFileStream.cpp b/src/utils/win/SkDWriteFontFileStream.cpp |
index 460f90e6c4aff8e6928eaebef5504d5e58a4490b..6c73441e72c2100f9151e9025e883c3d8611977c 100644 |
--- a/src/utils/win/SkDWriteFontFileStream.cpp |
+++ b/src/utils/win/SkDWriteFontFileStream.cpp |
@@ -139,7 +139,7 @@ HRESULT SkDWriteFontFileStreamWrapper::Create(SkStreamAsset* stream, |
SkDWriteFontFileStreamWrapper** streamFontFileStream) |
{ |
*streamFontFileStream = new SkDWriteFontFileStreamWrapper(stream); |
- if (nullptr == streamFontFileStream) { |
+ if (nullptr == *streamFontFileStream) { |
reed1
2016/06/08 10:35:10
We NEVER assume 'new' will return nullptr. Can we
|
return E_OUTOFMEMORY; |
} |
return S_OK; |