From Jordi Torres, fixed leak and inappropriate read bug
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user