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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user