From: ehofman Date: Wed, 9 Dec 2009 09:38:07 +0000 (+0000) Subject: Fix crash in SGSoundMgr::stop(): do not try to erase buffer items one at a time X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f3c591469b12bb5ec9ad29181fda0faeee5ab144;p=simgear.git Fix crash in SGSoundMgr::stop(): do not try to erase buffer items one at a time --- diff --git a/simgear/sound/soundmgr_openal.cxx b/simgear/sound/soundmgr_openal.cxx index 618d44f3..2cba9780 100644 --- a/simgear/sound/soundmgr_openal.cxx +++ b/simgear/sound/soundmgr_openal.cxx @@ -209,7 +209,6 @@ void SGSoundMgr::stop() { refUint ref = buffers_current->second; ALuint buffer = ref.id; alDeleteBuffers(1, &buffer); - _buffers.erase( buffers_current ); } _buffers.clear();