xerces-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gareth Reakes <parthe...@parthenoncomputing.com>
Subject Re: Memory question
Date Tue, 13 Apr 2004 13:51:14 GMT
Hi,
	you have to delete it.

Gareth

On Tue, 13 Apr 2004, Sylvain Duval wrote:

> Hi all,
>
> Small question about memory management :
>
> When I do a setAttribute like this on a DOMElement :
>
> XMLCh* Name;
> chName = XMLString::transcode("synchro");
>
> XMLCh* chValue;
> chValue = XMLString::transcode("attValue");
>
> ((DOMElement*)pNode)->setAttribute(chName, chValue);
>
> Do I have to release the XMLCh* or this memory will be used in the DOM tree
> in memory?
>
> XMLString::release(&chName);	???
> XMLString::release(&chValue);	???
>
> Thanks for your help.
>
> Sylvain.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
>
>

-- 
Gareth Reakes, Managing Director            +44-1865-811184
Parthenon Computing                http://www.parthcomp.com




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


Mime
View raw message