diff options
author | Chris Wilson <chris+github@qwirx.com> | 2006-11-13 15:56:09 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2006-11-13 15:56:09 +0000 |
commit | 61fce5d877e6388c4422950dcabf6b4bd6d39624 (patch) | |
tree | ffee7b2cee24765a17f7d1ed48c67920f50aa60f /lib/common/Timer.h | |
parent | 826c2675ec1c2cb60e0ef1842c7a5ff7a548eeaa (diff) |
Use a static pointer rather than a static object, to allow it to be
freed in Timers::Cleanup, removing a reported memory leak (refs #9)
Diffstat (limited to 'lib/common/Timer.h')
-rw-r--r-- | lib/common/Timer.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/common/Timer.h b/lib/common/Timer.h index 6e4a5952..e0eb34db 100644 --- a/lib/common/Timer.h +++ b/lib/common/Timer.h @@ -48,8 +48,7 @@ private: class Timers { private: - static std::vector<Timer*> sTimers; - static bool sInitialised; + static std::vector<Timer*>* spTimers; static void Reschedule(); public: |