CTimerList: prevent memory leak

Origin commit data
------------------
Commit: 2aa36663e1
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-05-27 (Mon, 27 May 2013)
This commit is contained in:
2013-05-27 00:04:22 +02:00
parent 4e5af7a355
commit 10b1660389

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