summaryrefslogtreecommitdiff
path: root/core/fpdfapi/fpdf_parser
diff options
context:
space:
mode:
authorthestig <thestig@chromium.org>2016-07-29 06:15:39 -0700
committerCommit bot <commit-bot@chromium.org>2016-07-29 06:15:39 -0700
commit823df2adff3c9a87a61de33eeefab5669000e429 (patch)
tree8ca8404db5cb4eb14d33afd24d90c81433717db4 /core/fpdfapi/fpdf_parser
parentdbfc3522a6ee24d17f2c50a5dcc465db52a280ee (diff)
downloadpdfium-823df2adff3c9a87a61de33eeefab5669000e429.tar.xz
Cleanup CPDF_DocPageData release methods and callers.
Review-Url: https://codereview.chromium.org/2194853002
Diffstat (limited to 'core/fpdfapi/fpdf_parser')
-rw-r--r--core/fpdfapi/fpdf_parser/cpdf_document.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/fpdfapi/fpdf_parser/cpdf_document.cpp b/core/fpdfapi/fpdf_parser/cpdf_document.cpp
index 605fb6e878..7f69295675 100644
--- a/core/fpdfapi/fpdf_parser/cpdf_document.cpp
+++ b/core/fpdfapi/fpdf_parser/cpdf_document.cpp
@@ -6,7 +6,9 @@
#include "core/fpdfapi/fpdf_parser/include/cpdf_document.h"
+#include <memory>
#include <set>
+#include <vector>
#include "core/fpdfapi/fpdf_font/include/cpdf_fontencoding.h"
#include "core/fpdfapi/fpdf_page/cpdf_pagemodule.h"
@@ -779,8 +781,7 @@ CPDF_Image* CPDF_Document::LoadImageF(CPDF_Object* pObj) {
}
void CPDF_Document::RemoveColorSpaceFromPageData(CPDF_Object* pCSObj) {
- if (pCSObj)
- GetPageData()->ReleaseColorSpace(pCSObj);
+ GetPageData()->ReleaseColorSpace(pCSObj);
}
void CPDF_Document::ClearPageData() {