Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

i think there is a memoryleak in LinkEndChild(..) #42

Open
GoogleCodeExporter opened this issue Mar 17, 2015 · 7 comments
Open

i think there is a memoryleak in LinkEndChild(..) #42

GoogleCodeExporter opened this issue Mar 17, 2015 · 7 comments

Comments

@GoogleCodeExporter
Copy link

A code like:

ticpp::Element* pElem=...doesnt matter..
ticpp::Element* element=new ticpp::Element(name);
ticpp::Text* elementtext=new ticpp::Text(text);
element->LinkEndChild(elementtext);
pElem->LinkEndChild(element);

doesnt free the memory when pElem is destroyed.

My english isnt well enough to descripe the problem any further so
i wrote a little testprogramm to show you the problem.
Its just a little function in a loop which adds some Elements to a
document. if you look on the memory the programm needs, you can see it growing.

I hope you understand what im trying to tell you :) if you have any
questions or i made a mistake just mail me...


Original issue reported on code.google.com by [email protected] on 5 Mar 2009 at 10:51

Attachments:

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant