From 05e9551034ce610e7f0f92129a38fba28ee22749 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Sat, 7 Oct 2017 13:40:35 +0200 Subject: [PATCH] src/gui/test_menu.cpp fix memleak Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/74f02a16f5c1be9dd6cb2c430b1b2d25f25e4a4b Author: Jacek Jendrzej Date: 2017-10-07 (Sat, 07 Oct 2017) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/test_menu.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/gui/test_menu.cpp b/src/gui/test_menu.cpp index a2dfa2f32..790e18a8b 100644 --- a/src/gui/test_menu.cpp +++ b/src/gui/test_menu.cpp @@ -1121,9 +1121,12 @@ int CTestMenu::showTestMenu() w_test.setFooter(footerButtons, 2); w_test.addKey(CRCInput::RC_red, this, "footer_key"); w_test.addKey(CRCInput::RC_green, this, "footer_key"); - + int res = w_test.exec(NULL, ""); + delete w_hw; + delete w_cc; + delete w_msg; //exit - return w_test.exec(NULL, "");; + return res; } void CTestMenu::showCCTests(CMenuWidget *widget)