brendanr wrote:
On 2/26/2010 12:24 PM, brendanr wrote:You are correct that I need to release the XMLCh* that is returned from transcode. But this is not the leak.
You should release the char* that is returned from transcode. This is the leak definitely:
transcodedStr = std::string(XMLString::transcode(toTranscode));
// remove
Here you should save the pointer returned by transcode and release it
after the std::string is initialized.
Good luck!
Vitaly
