diff --git a/simgear/scene/tgdb/SGTexturedTriangleBin.hxx b/simgear/scene/tgdb/SGTexturedTriangleBin.hxx index 8f5cc314..b39ead0a 100644 --- a/simgear/scene/tgdb/SGTexturedTriangleBin.hxx +++ b/simgear/scene/tgdb/SGTexturedTriangleBin.hxx @@ -428,12 +428,12 @@ public: return 0; // FIXME: do not include all values here ... - osg::Vec3Array* vertices = new osg::Vec3Array; - osg::Vec3Array* normals = new osg::Vec3Array; - osg::Vec2Array* priTexCoords = new osg::Vec2Array; - osg::Vec2Array* secTexCoords = new osg::Vec2Array; + osg::ref_ptr vertices = new osg::Vec3Array; + osg::ref_ptr normals = new osg::Vec3Array; + osg::ref_ptr priTexCoords = new osg::Vec2Array; + osg::ref_ptr secTexCoords = new osg::Vec2Array; - osg::Vec4Array* colors = new osg::Vec4Array; + osg::ref_ptr colors = new osg::Vec4Array; colors->push_back(osg::Vec4(1, 1, 1, 1)); osg::Geometry* geometry = new osg::Geometry;