REVIEW: Memory Leak - SGPropertyNode::getChild()

12,862 (11,856 direct, 1,006 indirect) bytes in 78 blocks are definitely lost
This commit is contained in:
Scott Giese 2020-08-22 17:39:58 -05:00
parent 0807a6ddf7
commit f210d6ba94

View File

@ -1196,6 +1196,7 @@ SGPropertyNode::getChild (const std::string& name, int index, bool create)
return node; return node;
#endif #endif
} else if (create) { } else if (create) {
// REVIEW: Memory Leak - 12,862 (11,856 direct, 1,006 indirect) bytes in 78 blocks are definitely lost
SGPropertyNode* node = new SGPropertyNode(name, index, this); SGPropertyNode* node = new SGPropertyNode(name, index, this);
_children.push_back(node); _children.push_back(node);
fireChildAdded(node); fireChildAdded(node);