Fixing 47360, patch by sean@beatnik.com, r=av

This commit is contained in:
av%netscape.com 2000-08-07 21:51:19 +00:00
parent 22fb378e7d
commit 0ff6c8206b
2 changed files with 8 additions and 2 deletions

View File

@ -743,7 +743,10 @@ pluginInstanceOwner :: ~pluginInstanceOwner()
if (nsnull != mInstance)
{
mInstance->Stop();
mInstance->Destroy();
nsCOMPtr<nsIPluginHost> host;
host = do_GetService(kCPluginManagerCID);
if(host)
host->StopPluginInstance(mInstance);
NS_RELEASE(mInstance);
}

View File

@ -743,7 +743,10 @@ pluginInstanceOwner :: ~pluginInstanceOwner()
if (nsnull != mInstance)
{
mInstance->Stop();
mInstance->Destroy();
nsCOMPtr<nsIPluginHost> host;
host = do_GetService(kCPluginManagerCID);
if(host)
host->StopPluginInstance(mInstance);
NS_RELEASE(mInstance);
}