From dd613d48bcd84eb569813a9b946ab2c284527424 Mon Sep 17 00:00:00 2001 From: James Turner Date: Tue, 5 Nov 2013 05:16:50 +0000 Subject: [PATCH] Reset: pin ctor and dtor of event manager. --- simgear/structure/event_mgr.cxx | 10 ++++++++++ simgear/structure/event_mgr.hxx | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/simgear/structure/event_mgr.cxx b/simgear/structure/event_mgr.cxx index b855fae2..37ef4e13 100644 --- a/simgear/structure/event_mgr.cxx +++ b/simgear/structure/event_mgr.cxx @@ -38,6 +38,16 @@ void SGTimer::run() (*callback)(); } +SGEventMgr::SGEventMgr() +{ + +} + +SGEventMgr::~SGEventMgr() +{ + +} + void SGEventMgr::unbind() { _freezeProp.clear(); diff --git a/simgear/structure/event_mgr.hxx b/simgear/structure/event_mgr.hxx index efd34aa9..682964d2 100644 --- a/simgear/structure/event_mgr.hxx +++ b/simgear/structure/event_mgr.hxx @@ -68,8 +68,8 @@ private: class SGEventMgr : public SGSubsystem { public: - SGEventMgr() { _rtProp = 0; } - ~SGEventMgr() { _rtProp = 0; } + SGEventMgr(); + ~SGEventMgr(); virtual void init() {} virtual void update(double delta_time_sec);