summaryrefslogtreecommitdiff
path: root/src/channel.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2010-02-20 09:59:09 +0100
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2010-02-20 10:00:36 +0100
commitfe6f0b9919a7afc366063ce91103469ae422ba3c (patch)
treebf47dcb5089c1de098ae469bedb08fa01371b5bb /src/channel.cpp
parent168203c2185b7cf75c685b0557293720cdda208c (diff)
downloadMana-fe6f0b9919a7afc366063ce91103469ae422ba3c.tar.gz
Mana-fe6f0b9919a7afc366063ce91103469ae422ba3c.tar.bz2
Mana-fe6f0b9919a7afc366063ce91103469ae422ba3c.tar.xz
Mana-fe6f0b9919a7afc366063ce91103469ae422ba3c.zip
Don't check a pointer for 0 before deleting it
This check is built in already.
Diffstat (limited to 'src/channel.cpp')
-rw-r--r--src/channel.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/channel.cpp b/src/channel.cpp
index fcc8c6f8..38329e0c 100644
--- a/src/channel.cpp
+++ b/src/channel.cpp
@@ -35,8 +35,5 @@ Channel::Channel(short id,
Channel::~Channel()
{
- if (mTab)
- {
- delete mTab;
- }
+ delete mTab;
}