CTimerList: prevent memory leak

This commit is contained in:
2013-05-27 00:04:22 +02:00
parent d8f31fb5a7
commit 2aa36663e1

View File

@@ -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] =