diff -r f392bfb21e08 -r 9941bcf99348 gssettingsuis/Gs/GSFramework/src/GSParentPlugin.cpp --- a/gssettingsuis/Gs/GSFramework/src/GSParentPlugin.cpp Wed Apr 14 16:15:29 2010 +0300 +++ b/gssettingsuis/Gs/GSFramework/src/GSParentPlugin.cpp Tue Apr 27 16:56:32 2010 +0300 @@ -152,8 +152,7 @@ const TDesC& aResourceFileName, RConeResourceLoader& aResourceLoader ) { - RFs fsSession; - User::LeaveIfError( fsSession.Connect() ); + RFs &fsSession = CCoeEnv::Static()->FsSession(); // Find the resource file: TParse parse; @@ -165,10 +164,6 @@ // Open resource file: aResourceLoader.OpenL( fileName ); - - // If leave occurs before this, close is called automatically when the - // thread exits. - fsSession.Close(); }