From cbe13026c533267de12aea645d71c33d22c25022 Mon Sep 17 00:00:00 2001 From: Scott Giese Date: Sat, 22 Aug 2020 21:46:40 -0500 Subject: [PATCH] REVIEW: Memory Leak - wxRadarBg::init() 4,096 bytes in 1 blocks are indirectly lost --- src/Cockpit/wxradar.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Cockpit/wxradar.cxx b/src/Cockpit/wxradar.cxx index 58d1103af..8acf42806 100644 --- a/src/Cockpit/wxradar.cxx +++ b/src/Cockpit/wxradar.cxx @@ -214,6 +214,7 @@ wxRadarBg::init () _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;