From 9d6239031f661a5cc7d1f83eda5000ac1bf8588e Mon Sep 17 00:00:00 2001 From: Scott Giese Date: Sat, 22 Aug 2020 21:48:52 -0500 Subject: [PATCH] REVIEW: Memory Leak - wxRadarBg::init() 4,096 bytes in 1 blocks are indirectly lost --- src/Cockpit/wxradar.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Cockpit/wxradar.cxx b/src/Cockpit/wxradar.cxx index 58d1103af..118883953 100644 --- a/src/Cockpit/wxradar.cxx +++ b/src/Cockpit/wxradar.cxx @@ -210,10 +210,12 @@ wxRadarBg::init () // Initially allocate space for 128 quads _vertices = new osg::Vec2Array; _vertices->setDataVariance(osg::Object::DYNAMIC); + // REVIEW: Memory Leak - 4,096 bytes in 1 blocks are indirectly lost _vertices->reserve(128 * 4); _geom->setVertexArray(_vertices); _texCoords = new osg::Vec2Array; _texCoords->setDataVariance(osg::Object::DYNAMIC); + // REVIEW: Memory Leak - 4,096 bytes in 1 blocks are indirectly lost _texCoords->reserve(128 * 4); _geom->setTexCoordArray(0, _texCoords); osg::Vec3Array *colors = new osg::Vec3Array;