Schlesinger, Philip wrote:
Hi David.
I'm afraid this still is an issue - I still get a memory leak when I
uncomment everything from XMLPlatformUtils::Initialize() to
XMLPlatformUtils::Terminate(). Something is getting improperly
destroyed.
I verified that these four allocations are for some of the ICU's global
data structures, and the allocations occur when Xerces-C is initializing
its transcoding system.
There are there possibilities that I can see:
1. There is a bug in the ICU, and u_cleanup is not working correctly.
2. There is a bug in Xerces-C, which is preventing the ICU from
cleaning up these allocations.
3. My understanding of u_cleanup() is not correct.
Given that these are not really leaks, I don't think you need to worry
about them, but feel free to pursue the issue with the ICU or Xerces-C.
Dave