REVIEW: Memory Leak - FGPUIMenuBar::add_enabled_listener()
3,920 (3,136 direct, 784 indirect) bytes in 98 blocks are definitely lost
This commit is contained in:
parent
61f86b7dda
commit
f84a522f12
1 changed files with 1 additions and 0 deletions
|
@ -391,6 +391,7 @@ FGPUIMenuBar::add_enabled_listener(SGPropertyNode * node)
|
||||||
node->setBoolValue("enabled", true);
|
node->setBoolValue("enabled", true);
|
||||||
|
|
||||||
enable_item(node, node->getBoolValue("enabled"));
|
enable_item(node, node->getBoolValue("enabled"));
|
||||||
|
// REVIEW: Memory Leak - 3,920 (3,136 direct, 784 indirect) bytes in 98 blocks are definitely lost
|
||||||
node->getNode("enabled")->addChangeListener(new EnabledListener());
|
node->getNode("enabled")->addChangeListener(new EnabledListener());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue