REVIEW: Memory Leak - SGMaterialLib::load()

10,240 (1,440 direct, 8,800 indirect) bytes in 60 blocks are definitely lost
This commit is contained in:
Scott Giese 2020-08-22 17:57:54 -05:00
parent bdd7878d19
commit b4ba7db5c0

View File

@ -97,6 +97,7 @@ bool SGMaterialLib::load( const SGPath &fg_root, const SGPath& mpath,
} }
// Read list of areas // Read list of areas
// REVIEW: Memory Leak - 10,240 (1,440 direct, 8,800 indirect) bytes in 60 blocks are definitely lost
AreaList* arealist = new AreaList; AreaList* arealist = new AreaList;
const simgear::PropertyList areas = node->getChildren("area"); const simgear::PropertyList areas = node->getChildren("area");