1
0
Fork 0

REVIEW: Memory Leak - wxRadarBg::init()

4,096 bytes in 1 blocks are indirectly lost
This commit is contained in:
Scott Giese 2020-08-22 21:46:40 -05:00
parent 6c14eaa6e8
commit cbe13026c5

View file

@ -214,6 +214,7 @@ wxRadarBg::init ()
_geom->setVertexArray(_vertices); _geom->setVertexArray(_vertices);
_texCoords = new osg::Vec2Array; _texCoords = new osg::Vec2Array;
_texCoords->setDataVariance(osg::Object::DYNAMIC); _texCoords->setDataVariance(osg::Object::DYNAMIC);
// REVIEW: Memory Leak - 4,096 bytes in 1 blocks are indirectly lost
_texCoords->reserve(128 * 4); _texCoords->reserve(128 * 4);
_geom->setTexCoordArray(0, _texCoords); _geom->setTexCoordArray(0, _texCoords);
osg::Vec3Array *colors = new osg::Vec3Array; osg::Vec3Array *colors = new osg::Vec3Array;