imstutils/imconversationview/imcvuiapp/src/cimcvmenuextensionmanager.cpp
branchRCL_3
changeset 20 6b620215f837
parent 0 5e5d6b214f4f
--- a/imstutils/imconversationview/imcvuiapp/src/cimcvmenuextensionmanager.cpp	Tue May 25 12:27:36 2010 +0300
+++ b/imstutils/imconversationview/imcvuiapp/src/cimcvmenuextensionmanager.cpp	Wed Jun 09 09:27:17 2010 +0300
@@ -29,6 +29,7 @@
 #include "cimcvcommandinfo.h"
 
 #include "cvmenucommandinfo.hrh"
+#include "vimpstcustomcleanupapi.h"
 
 
 // ================= MEMBER FUNCTIONS =======================
@@ -103,6 +104,7 @@
     {
     // plugininfo array, Owned
     RImplInfoPtrArray pluginInfo;
+    CustomCleanupResetAndDestroyPushL(pluginInfo);
     iPlugins.ResetAndDestroy();
     REComSession::ListImplementationsL( KMenuCustomisationInterfaceUid,pluginInfo );
     TInt pluginCount = pluginInfo.Count();
@@ -139,8 +141,9 @@
            }
         
         }
-    pluginInfo.ResetAndDestroy();
-    pluginInfo.Close();
+
+     CleanupStack::PopAndDestroy(); 
+     
     }