diff options
author | leak <leak@bitmx.net> | 2014-07-20 00:39:43 +0200 |
---|---|---|
committer | leak <leak@bitmx.net> | 2014-07-20 00:40:08 +0200 |
commit | dce92611f3ff33e7db0a7234d611f5bffb0cc45f (patch) | |
tree | 19f51fac4cccdac6d4e81466a5e643c244239106 /src/server/shared/Logging/Log.h | |
parent | d2c120f2c2920760c56f1c2d1954bb28b9f2b678 (diff) |
Refactored singletons to enable proper deconstruction during shutdown
Diffstat (limited to 'src/server/shared/Logging/Log.h')
-rw-r--r-- | src/server/shared/Logging/Log.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/shared/Logging/Log.h b/src/server/shared/Logging/Log.h index e739c9eaf4e..8ae8db5bf5f 100644 --- a/src/server/shared/Logging/Log.h +++ b/src/server/shared/Logging/Log.h @@ -43,15 +43,15 @@ class Log static Log* instance(boost::asio::io_service* ioService = nullptr) { - static Log* instance = new Log(); + static Log instance; if (ioService != nullptr) { - instance->_ioService = ioService; - instance->_strand = new boost::asio::strand(*ioService); + instance._ioService = ioService; + instance._strand = new boost::asio::strand(*ioService); } - return instance; + return &instance; } void LoadFromConfig(); |