hotspotfw/hsclient/src/hssiaphandler.cpp
branchRCL_3
changeset 21 d9aaeb96a256
parent 0 56b72877c1cb
child 25 001d4d78e350
child 44 a9524956f6b5
--- 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());