Memory Leak Fix - matlib
Reclaimed 61,560 bytes in 405 blocks
This commit is contained in:
parent
f14bcfb3c5
commit
5b0f44f0db
@ -97,8 +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
|
auto arealist = std::make_shared<AreaList>();
|
||||||
AreaList* arealist = new AreaList;
|
|
||||||
|
|
||||||
const simgear::PropertyList areas = node->getChildren("area");
|
const simgear::PropertyList areas = node->getChildren("area");
|
||||||
simgear::PropertyList::const_iterator area_iter = areas.begin();
|
simgear::PropertyList::const_iterator area_iter = areas.begin();
|
||||||
|
Loading…
Reference in New Issue
Block a user