Fix leak on exit from Singleton dependency cycle

This commit is contained in:
Vinnie Falco
2013-09-15 01:01:32 -07:00
parent 83b9d22ff0
commit 001997e088
3 changed files with 6 additions and 5 deletions

View File

@@ -39,7 +39,7 @@
@ingroup beast_concurrent @ingroup beast_concurrent
*/ */
class BEAST_API FifoFreeStoreWithTLS class BEAST_API FifoFreeStoreWithTLS : public LeakChecked <FifoFreeStoreWithTLS>
{ {
public: public:
FifoFreeStoreWithTLS (); FifoFreeStoreWithTLS ();

View File

@@ -38,7 +38,7 @@
@ingroup beast_concurrent @ingroup beast_concurrent
*/ */
class BEAST_API FifoFreeStoreWithoutTLS class BEAST_API FifoFreeStoreWithoutTLS : LeakChecked <FifoFreeStoreWithoutTLS>
{ {
public: public:
explicit FifoFreeStoreWithoutTLS (); explicit FifoFreeStoreWithoutTLS ();

View File

@@ -17,7 +17,9 @@
*/ */
//============================================================================== //==============================================================================
class DeadlineTimer::Manager : protected Thread class DeadlineTimer::Manager
: public LeakChecked <Manager>
, protected Thread
{ {
private: private:
typedef CriticalSection LockType; typedef CriticalSection LockType;
@@ -203,8 +205,7 @@ private:
DeadlineTimer::DeadlineTimer (Listener* listener) DeadlineTimer::DeadlineTimer (Listener* listener)
: m_listener (listener) : m_listener (listener)
, m_manager (SharedSingleton <Manager>::getInstance ( , m_manager (SharedSingleton <Manager>::getInstance ())
SingletonLifetime::persistAfterCreation))
, m_isActive (false) , m_isActive (false)
{ {
} }