summaryrefslogtreecommitdiff
path: root/txtrecv.c
diff options
context:
space:
mode:
Diffstat (limited to 'txtrecv.c')
-rw-r--r--txtrecv.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/txtrecv.c b/txtrecv.c
index a3448be..5acf2c8 100644
--- a/txtrecv.c
+++ b/txtrecv.c
@@ -499,8 +499,7 @@ void cTxtStatus::ChannelSwitch(const cDevice *Device, int ChannelNumber)
// live channel was changed
// now re-attach the receiver to the new live channel
- delete receiver;
- receiver = NULL;
+ DELETENULL(receiver);
int TPid = newLiveChannel->Tpid();
@@ -596,8 +595,7 @@ void cTxtReceiver::SaveAndDeleteTxtPage()
if (TxtPage) {
if (storeTopText || !TxtPage->IsTopTextPage()) {
TxtPage->save();
- delete TxtPage;
- TxtPage=NULL;
+ DELETENULL(TxtPage);
}
}
}