summaryrefslogtreecommitdiff
path: root/lib/common/Timer.h
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2006-11-13 15:56:09 +0000
committerChris Wilson <chris+github@qwirx.com>2006-11-13 15:56:09 +0000
commit61fce5d877e6388c4422950dcabf6b4bd6d39624 (patch)
treeffee7b2cee24765a17f7d1ed48c67920f50aa60f /lib/common/Timer.h
parent826c2675ec1c2cb60e0ef1842c7a5ff7a548eeaa (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.h3
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: