summaryrefslogtreecommitdiff
path: root/src/channel.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-02-19 15:38:58 -0700
committerJared Adams <jaxad0127@gmail.com>2010-02-19 15:39:30 -0700
commit168203c2185b7cf75c685b0557293720cdda208c (patch)
tree2f3abaf8ded4b2e81c6e11908691d6d7a75aefed /src/channel.cpp
parent363527d0f95963ba3f4a6d25c8eabc1bb3ad4efe (diff)
downloadmana-168203c2185b7cf75c685b0557293720cdda208c.tar.gz
mana-168203c2185b7cf75c685b0557293720cdda208c.tar.bz2
mana-168203c2185b7cf75c685b0557293720cdda208c.tar.xz
mana-168203c2185b7cf75c685b0557293720cdda208c.zip
Prevent issues when channels are cleared after the ChatWindow
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;
+ }
}