Bug 597715 - xpcshell test test_service_sync_checkServerError.js crash [@ mozilla::scache::StartupCache::WriteToDisk()] r=dwitte a=blocking2.0

This commit is contained in:
Benedict Hsieh 2010-09-23 14:45:26 -07:00
Родитель 0cdcb67e1b
Коммит a0215519be
1 изменённых файлов: 5 добавлений и 0 удалений

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

@ -104,6 +104,7 @@ StartupCache::InitSingleton()
rv = StartupCache::gStartupCache->Init();
if (NS_FAILED(rv)) {
delete StartupCache::gStartupCache;
StartupCache::gStartupCache = nsnull;
}
return rv;
}
@ -116,6 +117,10 @@ StartupCache::StartupCache()
StartupCache::~StartupCache()
{
if (mTimer) {
mTimer->Cancel();
}
// Generally, the in-memory table should be empty here,
// but in special cases (like Talos Ts tests) we
// could shut down before we write.