serviceproviders/sapi_contacts_vpbk/contactservice/src/singlecontactfield.cpp
branchRCL_3
changeset 66 a9c0808a1095
parent 65 0b68a1b0c15e
--- a/serviceproviders/sapi_contacts_vpbk/contactservice/src/singlecontactfield.cpp	Tue Aug 31 16:06:03 2010 +0300
+++ b/serviceproviders/sapi_contacts_vpbk/contactservice/src/singlecontactfield.cpp	Wed Sep 01 12:28:47 2010 +0100
@@ -18,7 +18,7 @@
 
 #include <MVPbkFieldType.h>
 #include <MVPbkContactFieldTextData.h>
-
+#include <mmfcontrollerpluginresolver.h>
 #include "singlecontact.h"
 #include "singlecontactfield.h"
 
@@ -143,6 +143,7 @@
 
 EXPORT_C void CSingleContactField::GetUriFieldParamL(RPointerArray<HBufC>& axspidArray)
     {
+    CleanupResetAndDestroyPushL(axspidArray);
     TInt count = iidArray.Count();
     if(count != 0)
             {
@@ -155,7 +156,8 @@
         else
             {
             User::Leave(KErrNotFound);    
-            }       
+            }   
+    CleanupStack::Pop(&axspidArray);     
 	}
 
 //Gets the Group Data and returns them as output parameters
@@ -233,6 +235,7 @@
 
 EXPORT_C void CSingleContactField::GetXspidDataL(RPointerArray<HBufC>& axspidArray)
     {
+    CleanupResetAndDestroyPushL(axspidArray);
     TInt count = iArrayValue.Count();
     if(count != 0)
             {
@@ -247,7 +250,8 @@
         else
             {
             User::Leave(KErrNotFound);    
-            }       
+            } 
+    CleanupStack::Pop(&axspidArray);       
     }
 CSingleContactField::~CSingleContactField()
     {