1
0
Fork 0

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:
Scott Giese 2020-08-22 22:22:47 -05:00
parent 61f86b7dda
commit f84a522f12

View file

@ -391,6 +391,7 @@ FGPUIMenuBar::add_enabled_listener(SGPropertyNode * node)
node->setBoolValue("enabled", true);
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());
}