From: andy Date: Mon, 3 May 2004 18:39:25 +0000 (+0000) Subject: Add a destructor for SGEventMgr. We don't own the pointer, so we X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=de1a5f3034e38df01fa8005fa63e55e6db204fd5;p=simgear.git Add a destructor for SGEventMgr. We don't own the pointer, so we can't free it. Just zero it out. --- 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);