From 28a051b14c798424ab50c2ee3282f05e7f166506 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Mon, 30 Dec 2019 20:57:13 +0100 Subject: [PATCH] user_menue: fix use heap after free, in infoviewer_bb.cpp:257 --- src/gui/user_menue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/user_menue.cpp b/src/gui/user_menue.cpp index f14e7b0ce..3283e9bbb 100644 --- a/src/gui/user_menue.cpp +++ b/src/gui/user_menue.cpp @@ -578,7 +578,7 @@ const char *CUserMenu::getUserMenuButtonName(int button, bool &active, bool retu return ""; neutrino_locale_t loc = NONEXISTANT_LOCALE; - const char *text = NULL; + static const char *text = NULL; int mode = CNeutrinoApp::getInstance()->getMode(); std::vector items = ::split(g_settings.usermenu[button]->items, ',');