From 80f25a5a8135933a405349ffc798d13273b3d690 Mon Sep 17 00:00:00 2001 From: thestig Date: Thu, 19 May 2016 14:36:00 -0700 Subject: Fix leak in CPDF_StreamContentParser::AddTextObject(). ... by using STL containers in more places. Remove dead / duplicate code as well. BUG=603904 Review-Url: https://codereview.chromium.org/1998583002 --- core/fpdfapi/fpdf_page/pageint.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/fpdfapi/fpdf_page/pageint.h') diff --git a/core/fpdfapi/fpdf_page/pageint.h b/core/fpdfapi/fpdf_page/pageint.h index 6534186dc8..d1364d0dd1 100644 --- a/core/fpdfapi/fpdf_page/pageint.h +++ b/core/fpdfapi/fpdf_page/pageint.h @@ -250,7 +250,7 @@ class CPDF_StreamContentParser { CPDF_StreamParser* m_pSyntax; std::unique_ptr m_pCurStates; CPDF_ContentMark m_CurContentMark; - CFX_ArrayTemplate m_ClipTextList; + std::vector> m_ClipTextList; CPDF_TextObject* m_pLastTextObject; FX_FLOAT m_DefFontSize; FX_PATHPOINT* m_pPathPoints; @@ -260,7 +260,7 @@ class CPDF_StreamContentParser { FX_FLOAT m_PathStartY; FX_FLOAT m_PathCurrentX; FX_FLOAT m_PathCurrentY; - int m_PathClipType; + uint8_t m_PathClipType; CFX_ByteString m_LastImageName; CPDF_Image* m_pLastImage; CFX_BinaryBuf m_LastImageDict; -- cgit v1.2.3