userlibandfileserver/fileserver/sfile/sf_plugin_ops.cpp
branchGCC_SURGE
changeset 221 39b39e1a406e
parent 200 73ea206103e6
child 243 c7a0ce20c48c
--- a/userlibandfileserver/fileserver/sfile/sf_plugin_ops.cpp	Wed Jul 21 14:46:58 2010 +0100
+++ b/userlibandfileserver/fileserver/sfile/sf_plugin_ops.cpp	Thu Jul 22 16:46:39 2010 +0100
@@ -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)