From: Curtis L. Olson Date: Tue, 3 May 2011 18:24:57 +0000 (-0500) Subject: Fix a crash on exit. The SGEnviro destructor was attempting to delete an X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2e05043f437665ad1d6b31147b28207d8df97e91;p=simgear.git Fix a crash on exit. The SGEnviro destructor was attempting to delete an 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. --- diff --git a/simgear/environment/visual_enviro.cxx b/simgear/environment/visual_enviro.cxx index e36ad253..8ff62321 100644 --- a/simgear/environment/visual_enviro.cxx +++ b/simgear/environment/visual_enviro.cxx @@ -187,7 +187,7 @@ SGEnviro::SGEnviro() : } SGEnviro::~SGEnviro(void) { - if (sampleGroup) delete sampleGroup; + // if (sampleGroup) delete sampleGroup; // OSGFIXME return;