src/gui/test_menu.cpp fix memleak

Origin commit data
------------------
Branch: ni/coolstream
Commit: 74f02a16f5
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2017-10-07 (Sat, 07 Oct 2017)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2017-10-07 13:40:35 +02:00
parent 586a1b5a49
commit 05e9551034

View File

@@ -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)