From d18c9910e8172ece114772ee1b9697b8e0305b6c Mon Sep 17 00:00:00 2001 From: Scott Giese Date: Sat, 22 Aug 2020 18:04:56 -0500 Subject: [PATCH] REVIEW: Memory Leak - SGMaterialLib::load() 8,800 bytes in 57 blocks are indirectly lost --- simgear/scene/material/matlib.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/simgear/scene/material/matlib.cxx b/simgear/scene/material/matlib.cxx index 353d123d..809fa3ba 100644 --- a/simgear/scene/material/matlib.cxx +++ b/simgear/scene/material/matlib.cxx @@ -112,6 +112,7 @@ bool SGMaterialLib::load( const SGPath &fg_root, const SGPath& mpath, std::min(y1, y2), fabs(x2 - x1), fabs(y2 - y1)); + // REVIEW: Memory Leak - 8,800 bytes in 57 blocks are indirectly lost arealist->push_back(rect); SG_LOG( SG_TERRAIN, SG_DEBUG, " Area (" << rect.x() << ","