Fix leaks in the xlib port (and some problems exposed by fixing those leaks). b=64534, 64767 r=blizzard@mozilla.org (Not part of the build.)

git-svn-id: svn://10.0.0.236/trunk@84694 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dbaron%fas.harvard.edu
2001-01-10 02:49:45 +00:00
parent 73d33434d9
commit b4a357b94d
16 changed files with 153 additions and 115 deletions

View File

@@ -206,4 +206,12 @@ static nsModuleComponentInfo components[] =
nsFileSpecWithUIImplConstructor }
};
NS_IMPL_NSGETMODULE("nsWidgetXLIBModule", components)
PR_STATIC_CALLBACK(void)
nsWidgetXLIBModuleDtor(nsIModule *self)
{
nsClipboard::Shutdown();
}
NS_IMPL_NSGETMODULE_WITH_DTOR("nsWidgetXLIBModule",
components,
nsWidgetXLIBModuleDtor)