radioengine/settings/src/cradiosettingsimp.cpp
changeset 41 3a6b55c6390c
parent 28 075425b8d9a4
--- a/radioengine/settings/src/cradiosettingsimp.cpp	Tue Jul 06 14:16:27 2010 +0300
+++ b/radioengine/settings/src/cradiosettingsimp.cpp	Wed Aug 18 09:49:03 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;
     }
-