eventlist: fix segfault

Signed-off-by: Thilo Graf <dbt@novatux.de>
review required


Origin commit data
------------------
Branch: ni/coolstream
Commit: 08c4801698
Author: TangoCash <eric@loxat.de>
Date: 2017-05-03 (Wed, 03 May 2017)

Origin message was:
------------------
-eventlist: fix segfault

Signed-off-by: Thilo Graf <dbt@novatux.de>
review required


------------------
This commit was generated by Migit
This commit is contained in:
TangoCash
2017-05-03 21:29:41 +02:00
committed by Thilo Graf
parent 1dbd9769df
commit 93ef2ac356

View File

@@ -120,12 +120,15 @@ CEventList::CEventList()
oldEventID = -1; oldEventID = -1;
bgRightBoxPaint = false; bgRightBoxPaint = false;
header = NULL; header = NULL;
pb = NULL;
} }
CEventList::~CEventList() CEventList::~CEventList()
{ {
delete header; delete header;
header = NULL; header = NULL;
delete pb;
pb = NULL;
} }
void CEventList::UpdateTimerList(void) void CEventList::UpdateTimerList(void)