xmlsecurityengine/xmlsecwrapper/src/xmlsecwsign.cpp
changeset 17 ed3155dbd163
parent 0 e35f40988205
child 24 74f0b3eb154c
--- a/xmlsecurityengine/xmlsecwrapper/src/xmlsecwsign.cpp	Fri Apr 16 16:57:34 2010 +0300
+++ b/xmlsecurityengine/xmlsecwrapper/src/xmlsecwsign.cpp	Mon May 03 14:14:40 2010 +0300
@@ -214,11 +214,13 @@
 // Reset template settings
 // ---------------------------------------------------------------------------
 //   
-void TemplateCleanup(TAny* aPref)
+void TemplateCleanupL(TAny* aPref)
     {
+   
     if(aPref)
         {
-        delete aPref;
+        CleanupStack::PushL(aPref);
+        CleanupStack::PopAndDestroy(aPref);
         xmlSetPrefix(NULL);
         }
     xmlSetNewLineFlag(1);
@@ -625,7 +627,7 @@
         pref = (unsigned char*) XmlEngXmlCharFromDes8L(aPref);
         xmlSetPrefix(pref);
         }
-    CleanupStack::PushL(TCleanupItem(Sign::TemplateCleanup,(TAny*)pref));
+    CleanupStack::PushL(TCleanupItem(Sign::TemplateCleanupL,(TAny*)pref));
         
     xmlNodePtr signNode = NULL;
     xmlNodePtr refNode = NULL;