Fixed possible memory leak

This commit is contained in:
Robert Osfield 2016-07-06 20:34:41 +01:00
parent e5e89a3ac9
commit f99408f254

View File

@ -598,7 +598,7 @@ public:
osg::ref_ptr<JSONObject> json = new JSONNode;
osg::Vec3 min(0,0,0), max(0,0,0);
JSONObject *bboxData = new JSONObject;
osg::ref_ptr<JSONObject> bboxData = new JSONObject;
bool hasBoundindBox = ( node.getUserValue("AABBonBone_min", min) && node.getUserValue("AABBonBone_max", max) );
if (hasBoundindBox) {