mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
CTimerList: prevent memory leak
This commit is contained in:
@@ -857,8 +857,8 @@ void CTimerList::paintItem(int pos)
|
||||
|
||||
void CTimerList::paintHead()
|
||||
{
|
||||
CComponentsHeader *header = new CComponentsHeader(x, y, width, theight, LOCALE_TIMERLIST_NAME, NEUTRINO_ICON_TIMER);
|
||||
header->paint();
|
||||
CComponentsHeader header(x, y, width, theight, LOCALE_TIMERLIST_NAME, NEUTRINO_ICON_TIMER);
|
||||
header.paint();
|
||||
}
|
||||
|
||||
const struct button_label TimerListButtons[5] =
|
||||
|
Reference in New Issue
Block a user