mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 18:31:12 +02:00
gui/keybind_setup.cpp: fix memleak - unneeded keySetupNotifier creation
Origin commit data
------------------
Branch: ni/coolstream
Commit: af21835064
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2012-05-04 (Fri, 04 May 2012)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
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