Chaned the OsgCameraGroup so that its scene handler list used ref_ptr<> for

robustly managing memory.
This commit is contained in:
Robert Osfield
2003-03-18 20:27:09 +00:00
parent b04edb70aa
commit 8ed643ca24
8 changed files with 14 additions and 146 deletions

View File

@@ -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;}