Index: xfa/src/fxfa/src/app/xfa_ffapp.cpp |
diff --git a/xfa/src/fxfa/src/app/xfa_ffapp.cpp b/xfa/src/fxfa/src/app/xfa_ffapp.cpp |
index 14c59e93f05c0f54d98e63b3669c68a1db6203c2..5cdbb3661b2486fcdebcf99c6a6771da9e66b8a0 100644 |
--- a/xfa/src/fxfa/src/app/xfa_ffapp.cpp |
+++ b/xfa/src/fxfa/src/app/xfa_ffapp.cpp |
@@ -210,9 +210,6 @@ IXFA_Doc* CXFA_FFApp::CreateDoc(IXFA_DocProvider* pProvider, |
IFX_FileRead* pStream, |
FX_BOOL bTakeOverFile) { |
CXFA_FFDoc* pDoc = new CXFA_FFDoc(this, pProvider); |
- if (!pDoc) { |
- return NULL; |
- } |
FX_BOOL bSuccess = pDoc->OpenDoc(pStream, bTakeOverFile); |
if (!bSuccess) { |
delete pDoc; |
@@ -226,9 +223,6 @@ IXFA_Doc* CXFA_FFApp::CreateDoc(IXFA_DocProvider* pProvider, |
return NULL; |
} |
CXFA_FFDoc* pDoc = new CXFA_FFDoc(this, pProvider); |
- if (!pDoc) { |
- return NULL; |
- } |
FX_BOOL bSuccess = pDoc->OpenDoc(pPDFDoc); |
if (!bSuccess) { |
delete pDoc; |