nsProfile::~nsProfile() { #if defined(DEBUG_profile_verbose) printf("~nsProfile \n"); #endif  if (--gInstanceCount == 0) {  delete gProfileDataAccess;  NS_IF_RELEASE(sApp_PrefsDirectory50); NS_IF_RELEASE(sApp_PreferencesFile50); NS_IF_RELEASE(sApp_UserProfileDirectory50); NS_IF_RELEASE(sApp_UserChromeDirectory); NS_IF_RELEASE(sApp_LocalStore50); NS_IF_RELEASE(sApp_History50); NS_IF_RELEASE(sApp_UsersPanels50); NS_IF_RELEASE(sApp_UsersMimeTypes50); NS_IF_RELEASE(sApp_BookmarksFile50); NS_IF_RELEASE(sApp_SearchFile50); NS_IF_RELEASE(sApp_MailDirectory50); NS_IF_RELEASE(sApp_ImapMailDirectory50); NS_IF_RELEASE(sApp_NewsDirectory50); NS_IF_RELEASE(sApp_MessengerFolderCache50); }
nsProfile::~nsProfile() { unloadPrefs(); PR_AtomicDecrement(&g_InstanceCount); mInstance = nsnull;
nsProfile::~nsProfile() {#if defined(DEBUG_profile_verbose)    printf("~nsProfile \n");#endif   if (--gInstanceCount == 0) {              delete gProfileDataAccess;      NS_IF_RELEASE(sApp_PrefsDirectory50);      NS_IF_RELEASE(sApp_PreferencesFile50);      NS_IF_RELEASE(sApp_UserProfileDirectory50);      NS_IF_RELEASE(sApp_UserChromeDirectory);      NS_IF_RELEASE(sApp_LocalStore50);      NS_IF_RELEASE(sApp_History50);      NS_IF_RELEASE(sApp_UsersPanels50);      NS_IF_RELEASE(sApp_UsersMimeTypes50);      NS_IF_RELEASE(sApp_BookmarksFile50);      NS_IF_RELEASE(sApp_SearchFile50);      NS_IF_RELEASE(sApp_MailDirectory50);      NS_IF_RELEASE(sApp_ImapMailDirectory50);      NS_IF_RELEASE(sApp_NewsDirectory50);      NS_IF_RELEASE(sApp_MessengerFolderCache50);    }}