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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Gareth Reakes, Managing Director +44-1865-811184 Parthenon Computing http://www.parthcomp.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]