From c54bb4340324fab9e860fd625b4b380b6135c385 Mon Sep 17 00:00:00 2001 From: thestig Date: Fri, 29 Jul 2016 19:34:20 -0700 Subject: Simplify some FPDF edit functions. Fix an unlikely memory leak in FPDFPage_InsertObject(). BUG=pdfium:545 Review-Url: https://codereview.chromium.org/2195643002 --- core/fpdfapi/fpdf_page/include/cpdf_formobject.h | 1 + 1 file changed, 1 insertion(+) (limited to 'core/fpdfapi') 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 m_pForm; CFX_Matrix m_FormMatrix; -- cgit v1.2.3