From 82f2afe603ccb1e879a7a292259b0882b3d27bb6 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Tue, 5 Dec 2017 20:26:52 +0000 Subject: Fix CXFA_SimpleParser member destruction order. To avoid confusing UnownedPtr. BUG=chromium:791616 Change-Id: Ieb637f726049eee7c640b6de3b6ecd848ab40384 Reviewed-on: https://pdfium-review.googlesource.com/20391 Reviewed-by: dsinclair Commit-Queue: Lei Zhang --- xfa/fxfa/parser/cxfa_simple_parser.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xfa/fxfa/parser/cxfa_simple_parser.h b/xfa/fxfa/parser/cxfa_simple_parser.h index 52bb60fac5..7a20de384a 100644 --- a/xfa/fxfa/parser/cxfa_simple_parser.h +++ b/xfa/fxfa/parser/cxfa_simple_parser.h @@ -73,8 +73,8 @@ class CXFA_SimpleParser { CFX_XMLInstruction* pXMLInstruction, XFA_PacketType ePacketID); - UnownedPtr m_pXMLParser; // Owned by |m_pXMLDoc| std::unique_ptr m_pXMLDoc; + UnownedPtr m_pXMLParser; // Owned by |m_pXMLDoc| RetainPtr m_pStream; RetainPtr m_pFileRead; UnownedPtr m_pFactory; -- cgit v1.2.3