Index: xfa/src/fdp/src/css/fde_cssstylesheet.cpp |
diff --git a/xfa/src/fdp/src/css/fde_cssstylesheet.cpp b/xfa/src/fdp/src/css/fde_cssstylesheet.cpp |
index c94236d34632faa659ab95363493d5e83d4706fa..0ba1751b9f8ebbfd5194ab6ffe732ecaf89f43ea 100644 |
--- a/xfa/src/fdp/src/css/fde_cssstylesheet.cpp |
+++ b/xfa/src/fdp/src/css/fde_cssstylesheet.cpp |
@@ -48,9 +48,6 @@ IFDE_CSSStyleSheet* IFDE_CSSStyleSheet::LoadFromStream( |
FX_WORD wCodePage, |
FX_DWORD dwMediaList) { |
CFDE_CSSStyleSheet* pStyleSheet = new CFDE_CSSStyleSheet(dwMediaList); |
- if (pStyleSheet == NULL) { |
- return NULL; |
- } |
if (!pStyleSheet->LoadFromStream(szUrl, pStream, wCodePage)) { |
pStyleSheet->Release(); |
pStyleSheet = NULL; |
@@ -64,9 +61,6 @@ IFDE_CSSStyleSheet* IFDE_CSSStyleSheet::LoadFromBuffer( |
FX_WORD wCodePage, |
FX_DWORD dwMediaList) { |
CFDE_CSSStyleSheet* pStyleSheet = new CFDE_CSSStyleSheet(dwMediaList); |
- if (pStyleSheet == NULL) { |
- return NULL; |
- } |
if (!pStyleSheet->LoadFromBuffer(szUrl, pBuffer, iBufSize, wCodePage)) { |
pStyleSheet->Release(); |
pStyleSheet = NULL; |