From cf55b7aa156146272981adfe7e1b8936c2994292 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sat, 4 Mar 2023 22:36:46 +0100 Subject: [PATCH] test_menu.cpp: fix possible crash on left menu w_hw->hide() is not really required. --- src/gui/test_menu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/test_menu.cpp b/src/gui/test_menu.cpp index 2354c9724..c595dbc15 100644 --- a/src/gui/test_menu.cpp +++ b/src/gui/test_menu.cpp @@ -1440,7 +1440,7 @@ int CTestMenu::showTestMenu() w_test.addKey(CRCInput::RC_red, this, "footer_key"); w_test.addKey(CRCInput::RC_green, this, "footer_key"); int res = w_test.exec(NULL, ""); - w_hw->hide(); + delete w_hw; delete w_cc; delete w_msg;