From 6d85404cf0ad1c9de5e7f818b9b69c2400530f19 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 6 Jul 2016 20:57:53 +0100 Subject: [PATCH] Added ref_ptr<> to quieten down Coverity --- src/osgPlugins/osgjs/WriteVisitor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgPlugins/osgjs/WriteVisitor.cpp b/src/osgPlugins/osgjs/WriteVisitor.cpp index 0c922139e..aa6fc29ca 100644 --- a/src/osgPlugins/osgjs/WriteVisitor.cpp +++ b/src/osgPlugins/osgjs/WriteVisitor.cpp @@ -644,7 +644,7 @@ JSONObject* WriteVisitor::createJSONMorphGeometry(osgAnimation::MorphGeometry* m } JSONObject* jsonGeometry = createJSONGeometry(morphGeometry, parent); - JSONArray* targetList = new JSONArray; + osg::ref_ptr targetList = new JSONArray; osgAnimation::MorphGeometry::MorphTargetList mTargetList = morphGeometry->getMorphTargetList(); typedef osgAnimation::MorphGeometry::MorphTargetList::iterator TargetIterator;