From Jordi Torres, fixed leak and inappropriate read bug

This commit is contained in:
Robert Osfield
2017-12-03 09:34:43 +00:00
parent 6ca3cab0d5
commit ef5410aaf0

View File

@@ -262,8 +262,6 @@ public:
osg::Geometry* multiPointToDrawable(OGRMultiPoint* mpoint) const
{
osg::Geometry* geom = new osg::Geometry;
osg::Geometry* pointGeom = new osg::Geometry();
osg::Vec3Array* vertices = new osg::Vec3Array();
@@ -286,7 +284,7 @@ public:
if (pointGeom->getVertexArray())
{
OSG_INFO << "osgOgrFeature::multiPointToDrawable " << geom->getVertexArray()->getNumElements() << " vertexes"<< std::endl;
OSG_INFO << "osgOgrFeature::multiPointToDrawable " << pointGeom->getVertexArray()->getNumElements() << " vertexes"<< std::endl;
}
return pointGeom;