nsCRT::free(name); #endif
delete [] name; #endif
nsAppShellService::ShutdownComponent( const nsCID &aComponentCID ) {    // Attempt to create instance of the component (must be a service).    nsIAppShellComponent *component;    nsresult rv = nsServiceManager::GetService( aComponentCID,                                                NS_GET_IID(nsIAppShellComponent),                                                (nsISupports**)&component );    if ( NS_SUCCEEDED( rv ) ) {        // Instance accessed, tell it to shutdown.        rv = component->Shutdown();#ifdef NS_DEBUG            char *name = aComponentCID.ToString();            printf( "Shut down app shell component %s, rv=0x%08X\n",                    name, (int)rv );            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            char *name = aComponentCID.ToString();            printf( "Unable to shut down app shell component %s, rv=0x%08X\n",                    name, (int)rv );            nsCRT::free(name);#endif    }    return;}