I'm pretty sure that XMLString::transcode allocates memory with new[], so you should 
use delete[].  Since you're using an older version, that may or may not be true.  Only 
segfaults will tell!

Adam Heinz
Senior Software Developer
Exstream Software

-----Original Message-----
From: Monica Lau [mailto:[EMAIL PROTECTED]
Sent: Friday, April 09, 2004 1:23 PM
To: [EMAIL PROTECTED]
Subject: RE: DOMWriter Questions


Hi,

I'm using an older version of xerces-c that doesn't
have XMLString::release().  In this case, can I simply
do the following to release the memory:

XMLCh *data = XMLString::transcode("data");
delete data;

Thanks,
Monica

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

Reply via email to