diff --git a/src/gui/timerlist.cpp b/src/gui/timerlist.cpp index 3553fe48d..2c9e0276e 100644 --- a/src/gui/timerlist.cpp +++ b/src/gui/timerlist.cpp @@ -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] =