Fixing bug 39289. Fixing a crasher at shutdown time when createprofile option is used. r=dougt

This commit is contained in:
racham%netscape.com 2000-08-21 01:36:42 +00:00
Родитель 9e6ae3f417
Коммит 4dcd2b675d
2 изменённых файлов: 8 добавлений и 4 удалений

Просмотреть файл

@ -276,8 +276,10 @@ static PRBool PR_CALLBACK DatasourceEnumerator(nsHashKey *aKey, void *aData, voi
nsChromeRegistry::~nsChromeRegistry()
{
mDataSourceTable->Enumerate(DatasourceEnumerator, mChromeDataSource);
delete mDataSourceTable;
if (mDataSourceTable) {
mDataSourceTable->Enumerate(DatasourceEnumerator, mChromeDataSource);
delete mDataSourceTable;
}
if (mRDFService) {
nsServiceManager::ReleaseService(kRDFServiceCID, mRDFService);

Просмотреть файл

@ -276,8 +276,10 @@ static PRBool PR_CALLBACK DatasourceEnumerator(nsHashKey *aKey, void *aData, voi
nsChromeRegistry::~nsChromeRegistry()
{
mDataSourceTable->Enumerate(DatasourceEnumerator, mChromeDataSource);
delete mDataSourceTable;
if (mDataSourceTable) {
mDataSourceTable->Enumerate(DatasourceEnumerator, mChromeDataSource);
delete mDataSourceTable;
}
if (mRDFService) {
nsServiceManager::ReleaseService(kRDFServiceCID, mRDFService);