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 008349c61cf9886eb110d04e1972e99671bec8ac..d75d6f5fbaf2c0374a378c9d6c3b808deded3d62 100644 |
--- a/core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp |
+++ b/core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp |
@@ -1087,7 +1087,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 { |
@@ -1166,9 +1166,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; |
} |