From b3bc36b2534d05c37e5f687f8deccfc9f8659abe Mon Sep 17 00:00:00 2001 From: ehofman Date: Sun, 18 Oct 2009 13:55:21 +0000 Subject: [PATCH] restore some part of the code to prevent an untwanted segmentationf fault. --- simgear/sound/soundmgr_openal.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/simgear/sound/soundmgr_openal.cxx b/simgear/sound/soundmgr_openal.cxx index 22c486da..4ff36eee 100644 --- a/simgear/sound/soundmgr_openal.cxx +++ b/simgear/sound/soundmgr_openal.cxx @@ -179,6 +179,8 @@ void SGSoundMgr::stop() { _buffers.erase( buffers_current ); } + _context = alcGetCurrentContext(); + _device = alcGetContextsDevice(_context); alcDestroyContext(_context); alcCloseDevice(_device); } -- 2.39.5