- osg::Geometry *_geom;
- osg::Vec3Array *_vertices;
- osg::Vec2Array *_texCoords;
- osg::Vec4Array* _colors;
+ osg::ref_ptr<osg::Geometry> _geom;
+ osg::ref_ptr<osg::Vec3Array> _vertices;
+ osg::ref_ptr<osg::Vec2Array> _texCoords;
+ osg::ref_ptr<osg::Vec4Array> _colors;