devsoundextensions/ciextnfactoryplugins/ciextnserverplugin/src/ciextnserverplugin.cpp
changeset 2 5c1df44f2eed
parent 0 b8ed18f6c07b
equal deleted inserted replaced
1:fcaf4606ba4e 2:5c1df44f2eed
    57 //
    57 //
    58 TInt CCIExtnServerPlugin::Setup( MCustomInterface& aInterface )
    58 TInt CCIExtnServerPlugin::Setup( MCustomInterface& aInterface )
    59     {
    59     {
    60     DEB_TRACE0(_L("*CI* CCIExtnServerPlugin::Setup"));
    60     DEB_TRACE0(_L("*CI* CCIExtnServerPlugin::Setup"));
    61     TInt status(KErrNone);
    61     TInt status(KErrNone);
    62     TRAPD(err, iCiExtnServerPluginWrapper = CIExtnServerPluginWrapper::NewL(aInterface));
    62     iMCustomInterface = &aInterface;
    63     if (err == KErrNone)
       
    64         {
       
    65         iMCustomInterface = iCiExtnServerPluginWrapper->GetInterface();
       
    66         }
       
    67     TRAP_IGNORE(InitializeMsgHndlrPluginsL());
    63     TRAP_IGNORE(InitializeMsgHndlrPluginsL());
    68     return status;
    64     return status;
    69     }
    65     }
    70 
    66 
    71 // ---------------------------------------------------------------------------
    67 // ---------------------------------------------------------------------------
   109         }
   105         }
   110     
   106     
   111     iMCIMsgHndlrIntfcList.Reset();
   107     iMCIMsgHndlrIntfcList.Reset();
   112     iMCIMsgHndlrIntfcList.Close();
   108     iMCIMsgHndlrIntfcList.Close();
   113 
   109 
   114     iCiExtnServerPluginWrapper->Release();
       
   115 
   110 
   116     REComSession::DestroyedImplementation(iDestructorKey);
   111     REComSession::DestroyedImplementation(iDestructorKey);
   117 
   112 
   118     delete this;
   113     delete this;
   119     }
   114     }