user_menue: fix use heap after free, in infoviewer_bb.cpp:257

This commit is contained in:
Jacek Jendrzej
2019-12-30 20:57:13 +01:00
parent baff642993
commit 28a051b14c

View File

@@ -578,7 +578,7 @@ const char *CUserMenu::getUserMenuButtonName(int button, bool &active, bool retu
return ""; return "";
neutrino_locale_t loc = NONEXISTANT_LOCALE; neutrino_locale_t loc = NONEXISTANT_LOCALE;
const char *text = NULL; static const char *text = NULL;
int mode = CNeutrinoApp::getInstance()->getMode(); int mode = CNeutrinoApp::getInstance()->getMode();
std::vector<std::string> items = ::split(g_settings.usermenu[button]->items, ','); std::vector<std::string> items = ::split(g_settings.usermenu[button]->items, ',');