Fix leak of nsMemoryImpl from ns4xPlugin::CreatePlugin. b=56584 r=av@netscape.com sr=waterson@netscape.com

git-svn-id: svn://10.0.0.236/trunk@83438 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dbaron%fas.harvard.edu
2000-12-09 04:06:49 +00:00
parent 613ce7eae3
commit 78991cf0e0
6 changed files with 38 additions and 14 deletions

View File

@@ -26,6 +26,7 @@
#include "nsPluginsCID.h"
#include "nsPluginHostImpl.h"
#include "nsPluginDocLoaderFactory.h"
#include "ns4xPlugin.h"
static nsModuleComponentInfo gComponentInfo[] = {
{ "Plugin Host",
@@ -44,4 +45,11 @@ static nsModuleComponentInfo gComponentInfo[] = {
nsPluginDocLoaderFactory::Create },
};
NS_IMPL_NSGETMODULE("nsPluginModule", gComponentInfo);
PR_STATIC_CALLBACK(void)
nsPluginModuleDtor(nsIModule *self)
{
ns4xPlugin::ReleaseStatics();
}
NS_IMPL_NSGETMODULE_WITH_DTOR("nsPluginModule", gComponentInfo,
nsPluginModuleDtor);