xerces-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Heinz" <AHe...@exstream.com>
Subject RE: DOMWriter Questions
Date Fri, 09 Apr 2004 18:25:10 GMT
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:mllau2004@yahoo.com]
Sent: Friday, April 09, 2004 1:23 PM
To: xerces-c-dev@xml.apache.org
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: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


Mime
View raw message