radioengine/settings/src/cradiosettingsimp.cpp
changeset 38 f8c3d4e6102c
parent 28 075425b8d9a4
--- a/radioengine/settings/src/cradiosettingsimp.cpp	Thu Jul 08 12:44:18 2010 +0300
+++ b/radioengine/settings/src/cradiosettingsimp.cpp	Fri Jul 23 10:16:59 2010 +0300
@@ -81,12 +81,9 @@
     delete iApplicationSettings;
     if ( iFsSession )
         {
-        if ( iFsSession->Handle() )
-            {
-            iFsSession->Close();
-            }
-        delete iFsSession;
+        iFsSession->Close();
         }
+    delete iFsSession;
     }
 
 // ---------------------------------------------------------------------------
@@ -137,7 +134,7 @@
     {
     LEVEL3( LOG_METHOD_AUTO );
     LEVEL3( LOG_FORMAT( "aFileName = %S, aPath = %S", &aFileName, &aPath ) );
-    
+
     TFileName fileName;
     TFileName baseResource;
     TFindFile finder( *iFsSession );
@@ -235,4 +232,3 @@
     LEVEL3( LOG_METHOD_AUTO );
     return *iFsSession;
     }
-