From 709b201de365b5c34fbac4df36038c2cbc98a6c7 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Tue, 7 Mar 2023 23:20:43 +0100 Subject: [PATCH] test_menu.cpp: fix possible crash on left menu w_hw->hide() is not really required. Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/c3688a028c251e49cd569016df484171735ceaba Author: Thilo Graf Date: 2023-03-07 (Tue, 07 Mar 2023) ------------------ This commit was generated by Migit --- 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 825076611..188c524d9 100644 --- a/src/gui/test_menu.cpp +++ b/src/gui/test_menu.cpp @@ -1442,7 +1442,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;