fixed crash when start recording with extrecmenu or remotetimers

This commit is contained in:
louis
2015-01-18 12:03:06 +01:00
parent c05b8413f0
commit 5801b4bab2
8 changed files with 22 additions and 21 deletions

View File

@@ -2,6 +2,7 @@
#include "libcore/timers.h"
cSDDisplayChannel::cSDDisplayChannel(cTemplate *channelTemplate, bool WithInfo) {
channelView = NULL;
if (firstDisplay) {
firstDisplay = false;
doOutput = false;
@@ -30,9 +31,8 @@ cSDDisplayChannel::cSDDisplayChannel(cTemplate *channelTemplate, bool WithInfo)
}
cSDDisplayChannel::~cSDDisplayChannel() {
if (!doOutput)
return;
delete channelView;
if (channelView)
delete channelView;
}
void cSDDisplayChannel::SetChannel(const cChannel *Channel, int Number) {