| Index: xfa/fxfa/parser/cxfa_document_parser.cpp
|
| diff --git a/xfa/fxfa/parser/cxfa_document_parser.cpp b/xfa/fxfa/parser/cxfa_document_parser.cpp
|
| index 9a45d36c1f9a6fff69927f832303fdcfd1a894c8..39496b8cb03a0196bac16b55d871c6d797937e07 100644
|
| --- a/xfa/fxfa/parser/cxfa_document_parser.cpp
|
| +++ b/xfa/fxfa/parser/cxfa_document_parser.cpp
|
| @@ -13,12 +13,13 @@ CXFA_DocumentParser::CXFA_DocumentParser(CXFA_FFNotify* pNotify)
|
| : m_nodeParser(nullptr, TRUE), m_pNotify(pNotify), m_pDocument(nullptr) {}
|
|
|
| CXFA_DocumentParser::~CXFA_DocumentParser() {
|
| - CloseParser();
|
| }
|
|
|
| int32_t CXFA_DocumentParser::StartParse(IFX_FileRead* pStream,
|
| XFA_XDPPACKET ePacketID) {
|
| - CloseParser();
|
| + m_pDocument.reset();
|
| + m_nodeParser.CloseParser();
|
| +
|
| int32_t nRetStatus = m_nodeParser.StartParse(pStream, ePacketID);
|
| if (nRetStatus == XFA_PARSESTATUS_Ready) {
|
| m_pDocument.reset(new CXFA_Document(this));
|
| @@ -47,8 +48,3 @@ CXFA_FFNotify* CXFA_DocumentParser::GetNotify() const {
|
| CXFA_Document* CXFA_DocumentParser::GetDocument() const {
|
| return m_pDocument.get();
|
| }
|
| -
|
| -void CXFA_DocumentParser::CloseParser() {
|
| - m_pDocument.reset();
|
| - m_nodeParser.CloseParser();
|
| -}
|
|
|