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