From: ehofman Date: Sun, 18 Oct 2009 13:55:21 +0000 (+0000) Subject: restore some part of the code to prevent an untwanted segmentationf fault. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b3bc36b2534d05c37e5f687f8deccfc9f8659abe;p=simgear.git restore some part of the code to prevent an untwanted segmentationf fault. --- 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); }