You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Mandeep Singh Bhatia <mb...@quark.co.in> on 2003/04/08 13:40:04 UTC

RE: Releasing pointers

Newly created nodes are "owned" by their parent that means its their
parent's responsibility to release their memory. So ultimately it comes to
the topmost parent which does not have further parent to release the memory.
After u have used the tree, call release on the root node to release all the
nodes.
--Mandeep.

-----Original Message-----
From: sashan [mailto:sashang@ihug.co.nz]
Sent: Tuesday, April 08, 2003 5:11 PM
To: xerces-c-dev@xml.apache.org
Subject: Releasing pointers


How are the pointers returned by functions like 
DOMDocument::createTextNode meant to be released? I see in the 
CreateDOMDocument sample that doc->release() is called. Does DOMDocument 
track certain types of memory allocations made by member functions?


Thank you


-- 
sashan



---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org