userlibandfileserver/fileserver/sfile/sf_plugin_ops.cpp
branchRCL_3
changeset 36 bbf8bed59bcb
parent 0 a41df078684a
child 43 c1f20ce4abcf
--- a/userlibandfileserver/fileserver/sfile/sf_plugin_ops.cpp	Tue May 25 14:09:55 2010 +0300
+++ b/userlibandfileserver/fileserver/sfile/sf_plugin_ops.cpp	Wed Jun 09 11:10:19 2010 +0300
@@ -252,8 +252,11 @@
 	CFsPlugin* plugin=NULL;
 	FsPluginManager::LockChain();
 	TInt err = FsPluginManager::Plugin(plugin, aRequest->Message().Int2());
-	if(err != KErrNone)
+	if(err != KErrNone) //should be ok but just in case
+	    {
+	    FsPluginManager::UnlockChain();
 		return err;
+	    }
 
 	TInt r = KErrNotFound;
 	if(plugin)