bug 967629 - don't release any nsNSSShutDownObject in any destructorSafeDestroyNSSReference r=cviecco

This commit is contained in:
David Keeler 2014-02-04 16:14:51 -08:00
Родитель 34a0dacb10
Коммит 350e6c202b
3 изменённых файлов: 5 добавлений и 2 удалений

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

@ -35,7 +35,6 @@ void nsNSSCertCache::virtualDestroyNSSReference()
void nsNSSCertCache::destructorSafeDestroyNSSReference()
{
mCertList = nullptr;
}
NS_IMETHODIMP

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

@ -201,6 +201,11 @@ protected:
the same lock and checks if objects it cleans up have already cleaned
up themselves).
destructorSafeDestroyNSSReference() MUST NOT cause any other
nsNSSShutDownObject to be deconstructed. Doing so can cause
unsupported concurrent operations on the hash table in the
nsNSSShutDownList.
class derivedClass : public nsISomeInterface,
public nsNSSShutDownObject
{

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

@ -156,7 +156,6 @@ private:
void destructorSafeDestroyNSSReference()
{
mKeyPair = nullptr;
}
const KeyType mKeyType; // in