From f84a522f12ad349fdd1bc9fa3b9dc597a2f54afa Mon Sep 17 00:00:00 2001 From: Scott Giese Date: Sat, 22 Aug 2020 22:22:47 -0500 Subject: [PATCH] REVIEW: Memory Leak - FGPUIMenuBar::add_enabled_listener() 3,920 (3,136 direct, 784 indirect) bytes in 98 blocks are definitely lost --- src/GUI/FGPUIMenuBar.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/GUI/FGPUIMenuBar.cxx b/src/GUI/FGPUIMenuBar.cxx index 0815a35df..3c055767a 100644 --- a/src/GUI/FGPUIMenuBar.cxx +++ b/src/GUI/FGPUIMenuBar.cxx @@ -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()); }