From de1a5f3034e38df01fa8005fa63e55e6db204fd5 Mon Sep 17 00:00:00 2001 From: andy Date: Mon, 3 May 2004 18:39:25 +0000 Subject: [PATCH] Add a destructor for SGEventMgr. We don't own the pointer, so we can't free it. Just zero it out. --- simgear/structure/event_mgr.hxx | 1 + 1 file changed, 1 insertion(+) diff --git a/simgear/structure/event_mgr.hxx b/simgear/structure/event_mgr.hxx index 4c8d29bd..4c89b060 100644 --- a/simgear/structure/event_mgr.hxx +++ b/simgear/structure/event_mgr.hxx @@ -63,6 +63,7 @@ class SGEventMgr : public SGSubsystem { public: SGEventMgr() { _freezeProp = 0; } + ~SGEventMgr() { _freezeProp = 0; } virtual void init() {} virtual void update(double delta_time_sec); -- 2.39.5