From fc9dd7711e1c04faa6b17f0bb1067e6ec9ef94a7 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Mon, 7 Dec 2020 23:28:52 +0100 Subject: [PATCH] test_menu.cpp: ensure destroy footer after hide Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/9b1e528c1930185a58b887b446022bf342bad5e9 Author: Thilo Graf Date: 2020-12-07 (Mon, 07 Dec 2020) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/test_menu.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gui/test_menu.cpp b/src/gui/test_menu.cpp index 2ec4330a8..ea706d7dd 100644 --- a/src/gui/test_menu.cpp +++ b/src/gui/test_menu.cpp @@ -681,8 +681,11 @@ int CTestMenu::exec(CMenuTarget* parent, const std::string &actionKey) if (!footer->isPainted()) footer->paint(); - else + else{ footer->hide(); + delete footer; + footer = NULL; + } return res; } else if (actionKey == "scrollbar"){