yep
you need to release it

decho
----- Original Message -----
From: "Sylvain Duval" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 13, 2004 4:14 PM
Subject: Memory question


> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to