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 "Houle, Dennis W" <De...@West.Boeing.com> on 2001/09/21 17:54:10 UTC

Should IDOM_NodeList* be deleted?

Team Xerces-C,
I would just like to confirm that users of IDOM_NodeList* (e.g. as returned
from getElementsByTagName) should not delete them when no longer needed.  I
presume that the memory that IDOM allocates for node lists is released when
the owning document is deleted.

Thanks for the clarification.

Dennis W. Houle
The Boeing Company
(714) 762-0291
(714) 762-2253 (fax)
dennis.w.houle@boeing.com



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


Re: Should IDOM_NodeList* be deleted?

Posted by Khaled Noaman <kn...@ca.ibm.com>.
You do not need to delete the IDOM_NodeList*. The memory should be released
when the owning document is deleted.

Regards,
Khaled

"Houle, Dennis W" wrote:

> Team Xerces-C,
> I would just like to confirm that users of IDOM_NodeList* (e.g. as returned
> from getElementsByTagName) should not delete them when no longer needed.  I
> presume that the memory that IDOM allocates for node lists is released when
> the owning document is deleted.
>
> Thanks for the clarification.
>
> Dennis W. Houle
> The Boeing Company
> (714) 762-0291
> (714) 762-2253 (fax)
> dennis.w.houle@boeing.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org