there is no need to check for NULL when deleting
authorMatthias Braun <matze@braunis.de>
Wed, 26 Apr 2006 08:44:44 +0000 (08:44 +0000)
committerMatthias Braun <matze@braunis.de>
Wed, 26 Apr 2006 08:44:44 +0000 (08:44 +0000)
SVN-Revision: 3437

src/audio/sound_manager.cpp

index 2cac391..5b65fe4 100644 (file)
@@ -60,8 +60,7 @@ SoundManager::SoundManager()
 
 SoundManager::~SoundManager()
 {
-  if(music_source)
-    delete music_source;
+  delete music_source;
 
   for(SoundSources::iterator i = sources.begin(); i != sources.end(); ++i) {
     delete *i;