]> git.mxchange.org Git - simgear.git/commitdiff
Add a destructor for SGEventMgr. We don't own the pointer, so we
authorandy <andy>
Mon, 3 May 2004 18:39:25 +0000 (18:39 +0000)
committerandy <andy>
Mon, 3 May 2004 18:39:25 +0000 (18:39 +0000)
can't free it.  Just zero it out.

simgear/structure/event_mgr.hxx

index 4c8d29bd61d19675847a8069300ea3e7eadf72b3..4c89b06022da3851df8217cf5d24b45ef969856a 100644 (file)
@@ -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);