]> git.mxchange.org Git - simgear.git/commitdiff
Fix a crash on exit. The SGEnviro destructor was attempting to delete an
authorCurtis L. Olson <curt0001@flightgear.org>
Tue, 3 May 2011 18:24:57 +0000 (13:24 -0500)
committerCurtis L. Olson <curt0001@flightgear.org>
Tue, 3 May 2011 18:24:57 +0000 (13:24 -0500)
object that had already been deleted by the sound manager.  Since SGEnviro
doesn't own this object, I removed the delete from it's destructor.

simgear/environment/visual_enviro.cxx

index e36ad253063a69e296a2dcb691253fa2fb221e59..8ff6232177b45db1822b134c500f87dea9042ebb 100644 (file)
@@ -187,7 +187,7 @@ SGEnviro::SGEnviro() :
 }
 
 SGEnviro::~SGEnviro(void) {
-       if (sampleGroup) delete sampleGroup;
+  // if (sampleGroup) delete sampleGroup;
 
   // OSGFIXME
   return;