diff -r 10810c91db26 -r 498f36116140 hotspotfw/hsclient/src/hssiaphandler.cpp --- a/hotspotfw/hsclient/src/hssiaphandler.cpp Fri Apr 16 16:07:56 2010 +0300 +++ b/hotspotfw/hsclient/src/hssiaphandler.cpp Mon May 03 13:32:51 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());