зеркало из https://github.com/mozilla/gecko-dev.git
bug 967629 - don't release any nsNSSShutDownObject in any destructorSafeDestroyNSSReference r=cviecco
This commit is contained in:
Родитель
34a0dacb10
Коммит
350e6c202b
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче