From 40725ad7074dfb668b0215ab73703678b574c30f Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 10 Jun 2016 15:53:58 +0100 Subject: [PATCH] Fixed memory leak detected by Coverity --- src/osgPlugins/gles/DrawArrayVisitor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgPlugins/gles/DrawArrayVisitor b/src/osgPlugins/gles/DrawArrayVisitor index 332d21ced..7c101bb60 100644 --- a/src/osgPlugins/gles/DrawArrayVisitor +++ b/src/osgPlugins/gles/DrawArrayVisitor @@ -26,7 +26,7 @@ public: GeometryArrayList srcArrays(geometry); // clone but clear content - osg::Geometry* newGeometry = new osg::Geometry; + osg::ref_ptr newGeometry = new osg::Geometry; GeometryArrayList dst = srcArrays.cloneType(); for (unsigned int i = 0; i < geometry.getNumPrimitiveSets(); i++) {