REVIEW: Memory Leak - SGMaterialLib::load()

8,800 bytes in 57 blocks are indirectly lost
This commit is contained in:
Scott Giese 2020-08-22 18:04:56 -05:00
parent b4ba7db5c0
commit d18c9910e8

View File

@ -112,6 +112,7 @@ bool SGMaterialLib::load( const SGPath &fg_root, const SGPath& mpath,
std::min<float>(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() << ","