summaryrefslogtreecommitdiff
path: root/fpdfsdk/src/fpdf_flatten.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-10-02 10:10:49 -0700
committerLei Zhang <thestig@chromium.org>2015-10-02 10:10:49 -0700
commitcb78ef507c272488fd7e4fd6862014333d8a9de5 (patch)
treefc5ef896bc830bebd4aca2902685dfb097365115 /fpdfsdk/src/fpdf_flatten.cpp
parent6ac0d2f03c8a00fd770d2beddf57da7755d950a6 (diff)
downloadpdfium-cb78ef507c272488fd7e4fd6862014333d8a9de5.tar.xz
XFA: Remove checks for new returning NULL in fpdfsdk.
Based on parts of https://codereview.chromium.org/1089823004 R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1383933003 .
Diffstat (limited to 'fpdfsdk/src/fpdf_flatten.cpp')
-rw-r--r--fpdfsdk/src/fpdf_flatten.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/fpdfsdk/src/fpdf_flatten.cpp b/fpdfsdk/src/fpdf_flatten.cpp
index 3049384db6..3619ef4a99 100644
--- a/fpdfsdk/src/fpdf_flatten.cpp
+++ b/fpdfsdk/src/fpdf_flatten.cpp
@@ -197,8 +197,6 @@ void SetPageContents(CFX_ByteString key,
// Create a new contents dictionary
if (!key.IsEmpty()) {
CPDF_Stream* pNewContents = new CPDF_Stream(NULL, 0, new CPDF_Dictionary);
- if (!pNewContents)
- return;
pPage->SetAtReference("Contents", pDocument,
pDocument->AddIndirectObject(pNewContents));