From bb95c50663a1ba3378c6b079dc21dc7deb8ea53a Mon Sep 17 00:00:00 2001 From: dsinclair Date: Mon, 11 Jul 2016 08:55:08 -0700 Subject: Cleanup ownership of parser members Change m_pXMLDoc and m_pStream in CXFA_SimpleParser to be a unique_ptr. This allows removing the CloseParser() call from CXFA_DocumentParser as the items will get cleaned up automatically. Review-Url: https://codereview.chromium.org/2131653002 --- xfa/fde/xml/fde_xml_imp.h | 1 - 1 file changed, 1 deletion(-) (limited to 'xfa/fde/xml/fde_xml_imp.h') diff --git a/xfa/fde/xml/fde_xml_imp.h b/xfa/fde/xml/fde_xml_imp.h index ba75f6b409..2667a106b7 100644 --- a/xfa/fde/xml/fde_xml_imp.h +++ b/xfa/fde/xml/fde_xml_imp.h @@ -193,7 +193,6 @@ class CFDE_XMLDoc : public CFX_Target { CFDE_XMLDoc(); ~CFDE_XMLDoc() override; - void Release() { delete this; } FX_BOOL LoadXML(CFDE_XMLParser* pXMLParser); int32_t DoLoad(IFX_Pause* pPause = nullptr); void CloseXML(); -- cgit v1.2.3