mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
gui/keybind_setup.cpp: fix memleak - unneeded keySetupNotifier creation
This commit is contained in:
@@ -76,7 +76,7 @@ CKeybindSetup::CKeybindSetup()
|
|||||||
|
|
||||||
CKeybindSetup::~CKeybindSetup()
|
CKeybindSetup::~CKeybindSetup()
|
||||||
{
|
{
|
||||||
|
delete keySetupNotifier;
|
||||||
}
|
}
|
||||||
|
|
||||||
int CKeybindSetup::exec(CMenuTarget* parent, const std::string &actionKey)
|
int CKeybindSetup::exec(CMenuTarget* parent, const std::string &actionKey)
|
||||||
@@ -218,7 +218,6 @@ int CKeybindSetup::showKeySetup()
|
|||||||
keySettings->addItem(new CMenuForwarder(LOCALE_EXTRA_SAVEKEYS, true, NULL, this, "savekeys", CRCInput::convertDigitToKey(shortcut++)));
|
keySettings->addItem(new CMenuForwarder(LOCALE_EXTRA_SAVEKEYS, true, NULL, this, "savekeys", CRCInput::convertDigitToKey(shortcut++)));
|
||||||
|
|
||||||
//rc tuning
|
//rc tuning
|
||||||
keySetupNotifier = new CKeySetupNotifier;
|
|
||||||
CStringInput * keySettings_repeat_genericblocker = new CStringInput(LOCALE_KEYBINDINGMENU_REPEATBLOCKGENERIC, g_settings.repeat_genericblocker, 3, LOCALE_REPEATBLOCKER_HINT_1, LOCALE_REPEATBLOCKER_HINT_2, "0123456789 ", keySetupNotifier);
|
CStringInput * keySettings_repeat_genericblocker = new CStringInput(LOCALE_KEYBINDINGMENU_REPEATBLOCKGENERIC, g_settings.repeat_genericblocker, 3, LOCALE_REPEATBLOCKER_HINT_1, LOCALE_REPEATBLOCKER_HINT_2, "0123456789 ", keySetupNotifier);
|
||||||
CStringInput * keySettings_repeatBlocker = new CStringInput(LOCALE_KEYBINDINGMENU_REPEATBLOCK, g_settings.repeat_blocker, 3, LOCALE_REPEATBLOCKER_HINT_1, LOCALE_REPEATBLOCKER_HINT_2, "0123456789 ", keySetupNotifier);
|
CStringInput * keySettings_repeatBlocker = new CStringInput(LOCALE_KEYBINDINGMENU_REPEATBLOCK, g_settings.repeat_blocker, 3, LOCALE_REPEATBLOCKER_HINT_1, LOCALE_REPEATBLOCKER_HINT_2, "0123456789 ", keySetupNotifier);
|
||||||
keySetupNotifier->changeNotify(NONEXISTANT_LOCALE, NULL);
|
keySetupNotifier->changeNotify(NONEXISTANT_LOCALE, NULL);
|
||||||
|
Reference in New Issue
Block a user