Memory Leak: 95 MB
99,418,032 bytes in 654,066 blocks are still reachable in loss record 15,500 of 15,501
This commit is contained in:
parent
f76c640b69
commit
cb54815cfc
@ -973,9 +973,10 @@ SGPropertyNode::SGPropertyNode( const std::string& name,
|
|||||||
*/
|
*/
|
||||||
SGPropertyNode::~SGPropertyNode ()
|
SGPropertyNode::~SGPropertyNode ()
|
||||||
{
|
{
|
||||||
// zero out all parent pointers, else they might be dangling
|
// REVIEW: Memory Leak: 95 MB
|
||||||
for (unsigned i = 0; i < _children.size(); ++i)
|
// 99,418,032 bytes in 654,066 blocks are still reachable in loss record 15,500 of 15,501
|
||||||
_children[i]->_parent = 0;
|
removeAllChildren();
|
||||||
|
|
||||||
clearValue();
|
clearValue();
|
||||||
|
|
||||||
if (_listeners) {
|
if (_listeners) {
|
||||||
|
@ -2045,7 +2045,6 @@ T SGPropertyNode::getValue(typename std::enable_if<!simgear::props
|
|||||||
case STRING:
|
case STRING:
|
||||||
case UNSPECIFIED:
|
case UNSPECIFIED:
|
||||||
return simgear::parseString<T>(make_string());
|
return simgear::parseString<T>(make_string());
|
||||||
break;
|
|
||||||
default: // avoid compiler warning
|
default: // avoid compiler warning
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user