omaprovisioning/provisioning/ProvisioningEngine/Src/CWPAdapterManager.cpp
branchRCL_3
changeset 26 19bba8228ff0
parent 25 b183ec05bd8c
--- a/omaprovisioning/provisioning/ProvisioningEngine/Src/CWPAdapterManager.cpp	Tue Aug 31 16:04:06 2010 +0300
+++ b/omaprovisioning/provisioning/ProvisioningEngine/Src/CWPAdapterManager.cpp	Wed Sep 01 12:27:42 2010 +0100
@@ -25,7 +25,7 @@
 #include "MWPContextManager.h"
 #include "MWPContextExtension.h"
 #include "ProvisioningDebug.h"
-
+#include <mmf/common/mmfcontrollerpluginresolver.h>
 // ============================ MEMBER FUNCTIONS ===============================
 
 // -----------------------------------------------------------------------------
@@ -239,6 +239,7 @@
     // Place [0] is reserved for APPID parameter, [1] for APPREF parameter 
     // and [2] for storage id i.e. id that identifies the saved settings in its storage.
     RPointerArray< HBufC8 > savingInfo;
+    CleanupResetAndDestroy<RPointerArray<HBufC8> > :: PushL(savingInfo);
     a->GetSavingInfoL( index, savingInfo );
 
     // If the adapter had something to tell to the other adapters...
@@ -278,8 +279,8 @@
 
             }// if
 	    }// if
-	savingInfo.ResetAndDestroy();
-    savingInfo.Close();
+		
+	CleanupStack :: PopAndDestroy(1); //savingInfo
     
     // Tell the adapters that all the settings have been now saved.
     TInt quantityOfAdapter( iAdapters->Count() );