diff -r b276298d5729 -r edd621764147 idlefw/plugins/mcsplugin/publisher/src/mcsplugin.cpp --- a/idlefw/plugins/mcsplugin/publisher/src/mcsplugin.cpp Tue Apr 27 16:57:49 2010 +0300 +++ b/idlefw/plugins/mcsplugin/publisher/src/mcsplugin.cpp Tue May 11 16:30:05 2010 +0300 @@ -89,7 +89,7 @@ // CMCSPlugin::~CMCSPlugin() { - Release( iContent ); + Release( iContent ); delete iEngine; iObservers.Close(); @@ -157,7 +157,12 @@ return; } - CMenuItem* item = iEngine->FetchMenuItemL( aData ); + CMenuItem* item = iEngine->FetchMenuItemL( aData ); + if ( !item ) + { + User::Leave( KErrNotFound ); + } + CleanupStack::PushL( item ); // One widget item has iDataCount number of elements