diff -r e7635922c074 -r 0abbef78e78b messagingfw/watcherfw/src/watcher.cpp --- a/messagingfw/watcherfw/src/watcher.cpp Tue Aug 03 21:08:41 2010 +0530 +++ b/messagingfw/watcherfw/src/watcher.cpp Wed Aug 18 01:39:51 2010 +0530 @@ -43,6 +43,7 @@ // Launch the start-up manager that will launch the watchers in the // correct start-up state CWatcherSSAStartupMgr* startupMgr = CWatcherSSAStartupMgr::NewL(); + CleanupStack::PushL(startupMgr); // The System Starter is waiting for us (start_method = EWaitForStart) // so we rendez-vous so it can start the next process in the SSC @@ -53,7 +54,7 @@ CActiveScheduler::Start(); // Tidy up - CleanupStack::PopAndDestroy(scheduler); + CleanupStack::PopAndDestroy(2, scheduler); } static TInt DoLaunchThread(TAny*)