phonebookengines/VirtualPhonebook/VPbkVCardEng/src/CVPbkVCardData.cpp
branchRCL_3
changeset 57 2666d9724c76
parent 0 e686773b3f54
child 64 c1e8ba0c2b16
--- a/phonebookengines/VirtualPhonebook/VPbkVCardEng/src/CVPbkVCardData.cpp	Mon Jun 21 15:24:27 2010 +0300
+++ b/phonebookengines/VirtualPhonebook/VPbkVCardEng/src/CVPbkVCardData.cpp	Thu Jul 15 18:22:55 2010 +0300
@@ -36,6 +36,7 @@
 
 #include <barsread.h>
 #include <vcard.h>
+#include <versittls.h>
 
 namespace 
     {
@@ -126,6 +127,7 @@
         {
         User::LeaveIfError( res );
         }
+    iVersitTlsData = &CVersitTlsData::VersitTlsDataL();
     }
 
 CVPbkVCardData* CVPbkVCardData::NewL(CVPbkContactManager& aContactManager)
@@ -139,6 +141,10 @@
     
 CVPbkVCardData::~CVPbkVCardData()
     {
+    if (iVersitTlsData)
+        {
+        iVersitTlsData->VersitTlsDataClose();
+        }
     delete iCopyPolicyManager;
     iParamIdNameMappings.ResetAndDestroy();
     iVNameIdNameMappings.ResetAndDestroy();