Hi Folks,

I've been using DOMWriter::writeToString() method and free'ing the returned memory with XMLString::release. When I gave it to valgrind, it said there is a mismatched malloc/new/free/delete. I've go into the code and see that a special allocator is used with the name fMemoryManager. I didn't examine further, I just deleted the XMLString::relase line, and valgrind stopped complaining.

What I guess is the mentioned allocator somehow deletes the content at some point, I mean the memory is managed. However, there's nothing in the documentation talking about it, can someone confirm me? If this is the case can we add a line to the documentation, so people do not try to destroy the returned memory?

Thanks,

emre

Reply via email to