| Index: fpdfsdk/src/fpdf_flatten.cpp
|
| diff --git a/fpdfsdk/src/fpdf_flatten.cpp b/fpdfsdk/src/fpdf_flatten.cpp
|
| index e48c6ab70640c0ad6869265bd818081d8610fbdd..3049384db6a0919398fc4c8bd7fa21c259661613 100644
|
| --- a/fpdfsdk/src/fpdf_flatten.cpp
|
| +++ b/fpdfsdk/src/fpdf_flatten.cpp
|
| @@ -196,8 +196,7 @@ void SetPageContents(CFX_ByteString key,
|
| if (!pContentsObj) {
|
| // Create a new contents dictionary
|
| if (!key.IsEmpty()) {
|
| - CPDF_Stream* pNewContents =
|
| - new CPDF_Stream(NULL, 0, new CPDF_Dictionary);
|
| + CPDF_Stream* pNewContents = new CPDF_Stream(NULL, 0, new CPDF_Dictionary);
|
| if (!pNewContents)
|
| return;
|
| pPage->SetAtReference("Contents", pDocument,
|
| @@ -246,8 +245,7 @@ void SetPageContents(CFX_ByteString key,
|
| pPage->SetAtReference("Contents", pDocument, dwObjNum);
|
|
|
| if (!key.IsEmpty()) {
|
| - CPDF_Stream* pNewContents =
|
| - new CPDF_Stream(NULL, 0, new CPDF_Dictionary);
|
| + CPDF_Stream* pNewContents = new CPDF_Stream(NULL, 0, new CPDF_Dictionary);
|
| dwObjNum = pDocument->AddIndirectObject(pNewContents);
|
| pContentsArray->AddReference(pDocument, dwObjNum);
|
|
|
| @@ -391,8 +389,7 @@ DLLEXPORT int STDCALL FPDFPage_Flatten(FPDF_PAGE page, int nFlag) {
|
| pPageDict->SetAt("Resources", pRes);
|
| }
|
|
|
| - CPDF_Stream* pNewXObject =
|
| - new CPDF_Stream(NULL, 0, new CPDF_Dictionary);
|
| + CPDF_Stream* pNewXObject = new CPDF_Stream(NULL, 0, new CPDF_Dictionary);
|
| FX_DWORD dwObjNum = pDocument->AddIndirectObject(pNewXObject);
|
| CPDF_Dictionary* pPageXObject = pRes->GetDict("XObject");
|
| if (!pPageXObject) {
|
|
|