From: mfranz Date: Fri, 24 Mar 2006 23:24:20 +0000 (+0000) Subject: more guarded pointers (we are still getting spurious crashes on exit because X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=61f6565321a60cfd2aa94d6877f6d8fc6e557826;p=simgear.git more guarded pointers (we are still getting spurious crashes on exit because of that) --- 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; };