Index: core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp |
diff --git a/core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp b/core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp |
index 7093edae4797ee4aef7568d283c8cac2cf49e93f..b45d9c3e5d68604bbf341bfbd7d031247d33056f 100644 |
--- a/core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp |
+++ b/core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp |
@@ -500,9 +500,6 @@ DIB_COMP_DATA* CPDF_DIBSource::GetDecodeAndMaskArray(FX_BOOL& bDefaultDecode, FX |
return NULL; |
} |
DIB_COMP_DATA* pCompData = FX_Alloc(DIB_COMP_DATA, m_nComponents); |
- if (pCompData == NULL) { |
- return NULL; |
- } |
int max_data = (1 << m_bpc) - 1; |
CPDF_Array* pDecode = m_pDict->GetArray(FX_BSTRC("Decode")); |
if (pDecode) { |