Chaned the OsgCameraGroup so that its scene handler list used ref_ptr<> for
robustly managing memory.
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
|
||||
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2003 Robert Osfield
|
||||
*
|
||||
* This library is open source and may be redistributed and/or modified under
|
||||
@@ -42,7 +43,7 @@ class OSGPRODUCER_EXPORT OsgCameraGroup : public Producer::CameraGroup
|
||||
virtual ~OsgCameraGroup() {}
|
||||
|
||||
|
||||
typedef std::vector <osgProducer::OsgSceneHandler*> SceneHandlerList;
|
||||
typedef std::vector < osg::ref_ptr<osgProducer::OsgSceneHandler> > SceneHandlerList;
|
||||
|
||||
|
||||
SceneHandlerList& getSceneHandlerList() { return _shvec;}
|
||||
|
||||
Reference in New Issue
Block a user