summaryrefslogtreecommitdiff
path: root/src/channel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/channel.cpp')
-rw-r--r--src/channel.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/channel.cpp b/src/channel.cpp
index 38329e0c..fcc8c6f8 100644
--- a/src/channel.cpp
+++ b/src/channel.cpp
@@ -35,5 +35,8 @@ Channel::Channel(short id,
Channel::~Channel()
{
- delete mTab;
+ if (mTab)
+ {
+ delete mTab;
+ }
}