--- a/xmlsecurityengine/xmlsecwrapper/src/xmlsecwinit.cpp Fri Apr 16 16:57:34 2010 +0300
+++ b/xmlsecurityengine/xmlsecwrapper/src/xmlsecwinit.cpp Mon May 03 14:14:40 2010 +0300
@@ -59,9 +59,10 @@
// UnSet global state for dll
// ---------------------------------------------------------------------------
//
-void XmlSecUnsetTlsD( void* aGlobalState )
+void XmlSecUnsetTlsDL( void* aGlobalState )
{
- delete aGlobalState;
+ CleanupStack::PushL(aGlobalState);
+ CleanupStack::PopAndDestroy(aGlobalState);
Dll::SetTls( NULL );
}
@@ -79,7 +80,7 @@
}
if(gs->iUserCount == 0)
{
- CleanupStack::PushL( TCleanupItem( XmlSecUnsetTlsD, gs ) );
+ CleanupStack::PushL( TCleanupItem( XmlSecUnsetTlsDL, gs ) );
XmlEngineAttachL();
RXmlEngDOMImplementation dom;