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

This reverts commit 28a051b14c.
This commit is contained in:
Jacek Jendrzej
2019-12-30 21:26:45 +01:00
parent 69a1014ab7
commit acfccc69e2

View File

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