diff -r 858c6c491d0e -r d9aaeb96a256 hotspotfw/hsclient/src/hssiaphandler.cpp --- a/hotspotfw/hsclient/src/hssiaphandler.cpp Wed Apr 14 17:07:39 2010 +0300 +++ b/hotspotfw/hsclient/src/hssiaphandler.cpp Tue Apr 27 17:47:07 2010 +0300 @@ -98,10 +98,11 @@ CleanupClosePushL( cmManager ); TUint easyWlanId = cmManager.EasyWlanIdL(); + // Easy WLAN can't be modified if ( easyWlanId == aIapID ) { - cmManager.Close(); + CleanupStack::PopAndDestroy( &cmManager ); return KErrPermissionDenied; } @@ -117,8 +118,8 @@ plugin.SetStringAttributeL( ECmName, aSettings.Name ); plugin.UpdateL(); } - CleanupStack::PopAndDestroy( &plugin ); // Close() called on "plugin" - CleanupStack::PopAndDestroy( &cmManager ); // Close() called on "cmManager" + CleanupStack::PopAndDestroy( &plugin ); + CleanupStack::PopAndDestroy( &cmManager ); // CommsDat section starts CMDBSession* dbSession = CMDBSession::NewL(CMDBSession::LatestVersion());