Hi All,
I just noticed in xml4c 2.3.0
Pasting initial some lines from XMLPlatformUtils.cpp
Please see my comments below starting with my name Vikas:
I think fgMemMgrAdopted flag is being set to wrong value.
void XMLPlatformUtils::Initialize(const char* const locale
, const char* const nlsHome
, PanicHandler* const panicHandler
, MemoryManager* const memoryManager)
{
if (gInitFlag == LONG_MAX)
return;
// Set pluggable memory manager
if (!fgMemoryManager)
{
if (memoryManager)
{
fgMemoryManager = memoryManager;
fgMemMgrAdopted = false; // Vikas: should it not be set to true
}
else
{
fgMemoryManager = new MemoryManagerImpl(); // Vikas: and here
fgMemMgrAdopted should not be set to false
}
}
Thanks & Regards
Vikas Agrawal
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]