[Orxonox-commit 429] r3010 - branches/sound/src/orxonox/objects/items

rgrieder at orxonox.net rgrieder at orxonox.net
Thu May 21 18:41:59 CEST 2009


Author: rgrieder
Date: 2009-05-21 18:41:59 +0200 (Thu, 21 May 2009)
New Revision: 3010

Modified:
   branches/sound/src/orxonox/objects/items/Engine.cc
Log:
Bufix in Engine.cc (revealed with runtest on windows/msvc).
Please note that the constructor immediately returns after RegisterObject at the time of the object hierarchy creation.

Modified: branches/sound/src/orxonox/objects/items/Engine.cc
===================================================================
--- branches/sound/src/orxonox/objects/items/Engine.cc	2009-05-21 15:43:14 UTC (rev 3009)
+++ branches/sound/src/orxonox/objects/items/Engine.cc	2009-05-21 16:41:59 UTC (rev 3010)
@@ -78,10 +78,10 @@
 
             if (this->boostBlur_)
                 delete this->boostBlur_;
+
+            if(this->sound_ != NULL)
+                delete this->sound_;
         }
-
-        if(this->sound_ != NULL)
-            delete this->sound_;
     }
 
     void Engine::XMLPort(Element& xmlelement, XMLPort::Mode mode)




More information about the Orxonox-commit mailing list