Free the component-location arrays at shutdown.

This commit is contained in:
Benjamin Smedberg 2010-06-25 17:27:10 -04:00
parent b2380781d9
commit feb8ea92f6
2 changed files with 5 additions and 1 deletions

View File

@ -112,6 +112,8 @@ $imbalance{'.root'} = 'n/a';
# The main read loop.
$/ = '\r\n';
sub read_data($$$) {
my ($INFILE, $plus, $minus) = @_;
@ -189,7 +191,6 @@ sub read_data($$$) {
}
}
}
read_data(*STDIN, "AddRef", "Release");
if ($::opt_comptrs) {

View File

@ -834,6 +834,9 @@ nsresult nsComponentManagerImpl::Shutdown(void)
mLoaderData.Clear();
delete sStaticModules;
delete sModuleLocations;
// Unload libraries
mNativeModuleLoader.UnloadLibraries();