mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Fix leak on exit from Singleton dependency cycle
This commit is contained in:
@@ -39,7 +39,7 @@
|
||||
|
||||
@ingroup beast_concurrent
|
||||
*/
|
||||
class BEAST_API FifoFreeStoreWithTLS
|
||||
class BEAST_API FifoFreeStoreWithTLS : public LeakChecked <FifoFreeStoreWithTLS>
|
||||
{
|
||||
public:
|
||||
FifoFreeStoreWithTLS ();
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
|
||||
@ingroup beast_concurrent
|
||||
*/
|
||||
class BEAST_API FifoFreeStoreWithoutTLS
|
||||
class BEAST_API FifoFreeStoreWithoutTLS : LeakChecked <FifoFreeStoreWithoutTLS>
|
||||
{
|
||||
public:
|
||||
explicit FifoFreeStoreWithoutTLS ();
|
||||
|
||||
@@ -17,7 +17,9 @@
|
||||
*/
|
||||
//==============================================================================
|
||||
|
||||
class DeadlineTimer::Manager : protected Thread
|
||||
class DeadlineTimer::Manager
|
||||
: public LeakChecked <Manager>
|
||||
, protected Thread
|
||||
{
|
||||
private:
|
||||
typedef CriticalSection LockType;
|
||||
@@ -203,8 +205,7 @@ private:
|
||||
|
||||
DeadlineTimer::DeadlineTimer (Listener* listener)
|
||||
: m_listener (listener)
|
||||
, m_manager (SharedSingleton <Manager>::getInstance (
|
||||
SingletonLifetime::persistAfterCreation))
|
||||
, m_manager (SharedSingleton <Manager>::getInstance ())
|
||||
, m_isActive (false)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user