fix FMM and UMR from purify, add some null sanity checks to fix various

crashers that I've seen.
This commit is contained in:
sspitzer@netscape.com
1999-12-21 23:11:17 +00:00
parent 102dfad206
commit 54da002e41
6 changed files with 33 additions and 25 deletions

View File

@@ -453,23 +453,23 @@ nsAppShellService::ShutdownComponent( const nsCID &aComponentCID ) {
if ( NS_SUCCEEDED( rv ) ) {
// Instance accessed, tell it to shutdown.
rv = component->Shutdown();
#ifdef NS_DEBUG
#ifdef NS_DEBUG
char *name = aComponentCID.ToString();
printf( "Shut down app shell component %s, rv=0x%08X\n",
name, (int)rv );
delete [] name;
#endif
nsCRT::free(name);
#endif
// Release the service.
nsServiceManager::ReleaseService( aComponentCID, component );
} else {
// Error getting component service (perhaps due to that component not being
// a service).
#ifdef NS_DEBUG
#ifdef NS_DEBUG
char *name = aComponentCID.ToString();
printf( "Unable to shut down app shell component %s, rv=0x%08X\n",
name, (int)rv );
delete [] name;
#endif
nsCRT::free(name);
#endif
}
return;