diff -r d0529222e3f0 -r bd874ee5e5e2 idlefw/plugins/mcsplugin/publisher/src/mcspluginengine.cpp --- a/idlefw/plugins/mcsplugin/publisher/src/mcspluginengine.cpp Fri Feb 19 23:07:29 2010 +0200 +++ b/idlefw/plugins/mcsplugin/publisher/src/mcspluginengine.cpp Fri Mar 12 15:43:54 2010 +0200 @@ -139,7 +139,7 @@ filter = NULL; iUndefinedItem = CMenuItem::OpenL( iMenu, iUndefinedItemHeader ); } - + // ---------------------------------------------------------------------------- // CMCSPluginEngine::~CMCSPluginEngine // @@ -148,21 +148,21 @@ CMCSPluginEngine::~CMCSPluginEngine() { StopObserving(); - + delete iPluginData; - iNotifier.Close(); + iMenu.Close(); //iWatcher->Cancel(); delete iWatcher; - delete iNotifyWatcher; + CCoeEnv::Static()->DeleteResourceFile( iResourceOffset ); - + if ( iUndefinedItem ) { delete iUndefinedItem; iUndefinedItem = NULL; - } + } } // --------------------------------------------------------------------------- @@ -732,6 +732,10 @@ // void CMCSPluginEngine::CleanMCSItemsL() { + iNotifier.Close(); + delete iNotifyWatcher; + iNotifyWatcher = NULL; + const TInt count( iPluginData->DataCount() ); for( TInt i = 0; i < count; i++ ) @@ -829,5 +833,14 @@ return -1; } +// --------------------------------------------------------------------------- +// Creates bookmark menu item if it does not exist +// --------------------------------------------------------------------------- +// +void CMCSPluginEngine::CreateBkmMenuItemsL() + { + iPluginData->CreateBkmMenuItemsL(); + } + // End of file