diff options
author | thestig <thestig@chromium.org> | 2016-07-29 19:34:20 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-07-29 19:34:20 -0700 |
commit | c54bb4340324fab9e860fd625b4b380b6135c385 (patch) | |
tree | 8e1e0f1f1316b88ac1b5426a3577d2347d42927b /core/fpdfapi/fpdf_page/include | |
parent | 9c987e9d233c855951db2611433b9cbc4f1b648f (diff) | |
download | pdfium-c54bb4340324fab9e860fd625b4b380b6135c385.tar.xz |
Simplify some FPDF edit functions.
Fix an unlikely memory leak in FPDFPage_InsertObject().
BUG=pdfium:545
Review-Url: https://codereview.chromium.org/2195643002
Diffstat (limited to 'core/fpdfapi/fpdf_page/include')
-rw-r--r-- | core/fpdfapi/fpdf_page/include/cpdf_formobject.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/fpdfapi/fpdf_page/include/cpdf_formobject.h b/core/fpdfapi/fpdf_page/include/cpdf_formobject.h index 03e117a132..5b146b268d 100644 --- a/core/fpdfapi/fpdf_page/include/cpdf_formobject.h +++ b/core/fpdfapi/fpdf_page/include/cpdf_formobject.h @@ -28,6 +28,7 @@ class CPDF_FormObject : public CPDF_PageObject { const CPDF_FormObject* AsForm() const override; void CalcBoundingBox(); + const CPDF_Form* form() const { return m_pForm.get(); } std::unique_ptr<CPDF_Form> m_pForm; CFX_Matrix m_FormMatrix; |