diff options
Diffstat (limited to 'base/at_exit.cc')
-rw-r--r-- | base/at_exit.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/base/at_exit.cc b/base/at_exit.cc index c43e9ac..1f56057 100644 --- a/base/at_exit.cc +++ b/base/at_exit.cc @@ -62,6 +62,7 @@ AtExitManager::~AtExitManager() { AutoLock lock(lock_); ProcessCallbacks(); g_atexit_queue = NULL; + g_atexit_lock = NULL; } void AtExitManager::RegisterCallback(AtExitCallbackType func) { @@ -74,7 +75,6 @@ void AtExitManager::RegisterCallback(AtExitCallbackType func) { g_atexit_queue->push(func); } -// Calls the functions registered with AtExit in LIFO order. void AtExitManager::ProcessCallbacksNow() { DCHECK(NULL != g_atexit_lock); if (!g_atexit_lock) |