You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.
# What steps will reproduce the problem?
Document doc;
Element elem("Element");
doc.InsertEndChild(elem);
# What is the expected output? What do you see instead?
I would expect, that no memory leaks are occuring. Instead I see two
objects created at ticpp.cpp(1084, TiCppRC::TiCppRC()) and one created at
ticpp.cpp(881, Element::Element()).
# What version of the product are you using? On what operating system?
Version 2.5.3. Windows XP, VS2005.
# Please provide any additional information below.
I think the reference count of addThis in Node::InsertEndChild() must not
be incremented (remove "addThis.m_impRC->IncRef();"). As far as I
understand, an independend copy is created in TiXmlNode::InsertEndChild()
with TiXmlNode* node = addThis.Clone(); ?
At least in my project it helped ;-)
Original issue reported on code.google.com by Ulf.Mei...@gmail.com on 24 Feb 2008 at 8:30
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
Ulf.Mei...@gmail.com
on 24 Feb 2008 at 8:30The text was updated successfully, but these errors were encountered: