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 )