Index: core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp |
diff --git a/core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp b/core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp |
index 3eac5ae74e53f6c0bba13faff8855469acd1a6c8..341be13d44a906e666a5c9e77c487ec18385144e 100644 |
--- a/core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp |
+++ b/core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp |
@@ -1086,7 +1086,7 @@ void CPDF_StreamAcc::LoadAllData(const CPDF_Stream* pStream, FX_BOOL bRawAccess, |
} |
if (!pStream->IsMemoryBased()) { |
pSrcData = m_pSrcData = FX_Alloc(FX_BYTE, dwSrcSize); |
- if (!pSrcData || !pStream->ReadRawData(0, pSrcData, dwSrcSize)) { |
+ if (!pStream->ReadRawData(0, pSrcData, dwSrcSize)) { |
return; |
} |
} else { |
@@ -1165,9 +1165,6 @@ FX_LPBYTE CPDF_StreamAcc::DetachData() |
return p; |
} |
FX_LPBYTE p = FX_Alloc(FX_BYTE, m_dwSize); |
- if (p == NULL) { |
- return NULL; |
- } |
FXSYS_memcpy32(p, m_pData, m_dwSize); |
return p; |
} |