From 2e05043f437665ad1d6b31147b28207d8df97e91 Mon Sep 17 00:00:00 2001 From: "Curtis L. Olson" Date: Tue, 3 May 2011 13:24:57 -0500 Subject: [PATCH] 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. --- simgear/environment/visual_enviro.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5