CTimerList: prevent memory leak

Origin commit data
------------------
Branch: ni/coolstream
Commit: 2aa36663e1
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-05-27 (Mon, 27 May 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
2013-05-27 00:04:22 +02:00
parent 77d4343771
commit aa27aedfa9

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