From 61f6565321a60cfd2aa94d6877f6d8fc6e557826 Mon Sep 17 00:00:00 2001 From: mfranz Date: Fri, 24 Mar 2006 23:24:20 +0000 Subject: [PATCH] more guarded pointers (we are still getting spurious crashes on exit because of that) --- simgear/scene/model/shadowvolume.hxx | 2 +- simgear/structure/event_mgr.hxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/simgear/scene/model/shadowvolume.hxx b/simgear/scene/model/shadowvolume.hxx index 11fc71fd..bd941ce5 100644 --- a/simgear/scene/model/shadowvolume.hxx +++ b/simgear/scene/model/shadowvolume.hxx @@ -130,7 +130,7 @@ private: bool shadowsAC_transp_enabled; bool use_alpha; bool canDoAlpha, canDoStencil; - SGPropertyNode *sim_rendering; + SGPropertyNode_ptr sim_rendering; sgVec3 sunPos; int frameNumber; diff --git a/simgear/structure/event_mgr.hxx b/simgear/structure/event_mgr.hxx index 746f03c0..007321b8 100644 --- a/simgear/structure/event_mgr.hxx +++ b/simgear/structure/event_mgr.hxx @@ -117,8 +117,8 @@ private: double interval, double delay, bool repeat, bool simtime); - SGPropertyNode* _freezeProp; - SGPropertyNode* _rtProp; + SGPropertyNode_ptr _freezeProp; + SGPropertyNode_ptr _rtProp; SGTimerQueue _rtQueue; SGTimerQueue _simQueue; };