nsCOMPtr<nsIPluginHost> host; host = do_GetService(kCPluginManagerCID); if(host) host->StopPluginInstance(mInstance);
if (!doCache) {  mInstance->Destroy(); } else { nsCOMPtr<nsIPluginHost> host; host = do_GetService(kCPluginManagerCID); if(host) host->StopPluginInstance(mInstance); }
pluginInstanceOwner :: ~pluginInstanceOwner(){  if (nsnull != mInstance)  {    mInstance->Stop();    nsCOMPtr<nsIPluginHost> host;    host = do_GetService(kCPluginManagerCID);    if(host)      host->StopPluginInstance(mInstance);    NS_RELEASE(mInstance);  }  mWindow = nsnull;  mViewer = nsnull;}