DOM Memory Management

Please post support and help requests here.
lskywalker
Posts: 2
Joined: 08 Oct 2012, 12:25

DOM Memory Management

Postby lskywalker » 28 Oct 2012, 18:23

What is the proper way to memory manage DOM objects?

Take e.g. this code:

Code: Select all

Document* doc = new Document();
Element* element = doc->createElement("root");
doc->appendChild(element);
doc->release();


Is the element also released automatically when the document is released, or do I manually need to call element->release()?

Return to “Support”

Who is online

Users browsing this forum: No registered users and 2 guests

cron