diff -r 1505405bc645 -r b01c07dfcf84 sysresmonitoring/oommonitor/src/oomactionlist.cpp --- a/sysresmonitoring/oommonitor/src/oomactionlist.cpp Wed Sep 29 15:24:56 2010 +0300 +++ b/sysresmonitoring/oommonitor/src/oomactionlist.cpp Thu Oct 07 06:25:45 2010 +0300 @@ -37,7 +37,9 @@ #include "oomapplicationconfig.h" #include "oomcloseappconfig.h" #include "oomrunpluginconfig.h" - +#ifdef FCC_UNIT_TEST +#include "ut_oom.h" +#endif const TUid KUidMatrixMenuApp = { 0x101F4CD2 }; template @@ -698,8 +700,9 @@ // Create an action acording to the config COomRunPlugin* action = COomRunPlugin::NewL(iPluginList->Uid(pluginIndex), pluginConfig, *this, iPluginListV2->Implementation(pluginIndex), &(iPluginListV2->Implementation(pluginIndex))); - + CleanupStack::PushL(action); iRunPluginActions.AppendL(action); + CleanupStack::Pop(); } //allocate empty COomCloseApp objects @@ -707,6 +710,8 @@ while (appCloseIndex--) { COomCloseApp* action = COomCloseApp::NewL(*this, iWs); + CleanupStack::PushL(action); iCloseAppActions.AppendL(action); + CleanupStack::Pop(); } }