mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 16:01:10 +02:00
CKeyChooserItem: fix possible memleak
Origin commit data
------------------
Branch: ni/coolstream
Commit: 5a48398bb4
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-09-17 (Sun, 17 Sep 2017)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -67,9 +67,9 @@ int CKeyChooserItem::exec(CMenuTarget* parent, const std::string &)
|
|||||||
// 10 seconds to choose a new key
|
// 10 seconds to choose a new key
|
||||||
int timeout = 10;
|
int timeout = 10;
|
||||||
|
|
||||||
CHintBox * hintbox = new CHintBox(name, LOCALE_KEYCHOOSER_TEXT, HINTBOX_MIN_WIDTH, NEUTRINO_ICON_SETTINGS, NEUTRINO_ICON_HINT_KEYS);
|
CHintBox hintbox(name, LOCALE_KEYCHOOSER_TEXT, HINTBOX_MIN_WIDTH, NEUTRINO_ICON_SETTINGS, NEUTRINO_ICON_HINT_KEYS);
|
||||||
//hintbox->setTimeOut(timeout);
|
//hintbox.setTimeOut(timeout);
|
||||||
hintbox->paint();
|
hintbox.paint();
|
||||||
|
|
||||||
CFrameBuffer::getInstance()->blit();
|
CFrameBuffer::getInstance()->blit();
|
||||||
|
|
||||||
@@ -92,7 +92,7 @@ int CKeyChooserItem::exec(CMenuTarget* parent, const std::string &)
|
|||||||
}
|
}
|
||||||
|
|
||||||
g_RCInput->setLongPressAny(false);
|
g_RCInput->setLongPressAny(false);
|
||||||
hintbox->hide();
|
hintbox.hide();
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user