From edf0546ad820b65c70024eff2a3fd70c290d84ae Mon Sep 17 00:00:00 2001 From: David Hesselbom Date: Fri, 4 Aug 2017 16:29:30 +0200 Subject: [PATCH] Fixes #61 --- ticpp.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/ticpp.cpp b/ticpp.cpp index a0c48cb..9b2c2d5 100644 --- a/ticpp.cpp +++ b/ticpp.cpp @@ -788,6 +788,7 @@ Document::Document() Document::Document( TiXmlDocument* document ) : NodeImp< TiXmlDocument >( document ) { + m_impRC->InitRef(); } Document::Document( const char* documentName )