Fix for bug 41433 (assert/crash in DNS for offline-online) We were not destroying the monitor in shutdown. r=bryner

This commit is contained in:
gagan%netscape.com 2000-07-14 03:07:35 +00:00
Родитель 6dff277714
Коммит db8ee85410
1 изменённых файлов: 6 добавлений и 0 удалений

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

@ -1236,6 +1236,12 @@ nsDNSService::Shutdown()
// Have to break the cycle here, otherwise nsDNSService holds onto the thread
// and the thread holds onto the nsDNSService via its mRunnable
mThread = nsnull;
if (mMonitor)
{
nsAutoMonitor::DestroyMonitor(mMonitor);
mMonitor = nsnull;
}
return rv;
}