From f3c591469b12bb5ec9ad29181fda0faeee5ab144 Mon Sep 17 00:00:00 2001 From: ehofman Date: Wed, 9 Dec 2009 09:38:07 +0000 Subject: [PATCH] Fix crash in SGSoundMgr::stop(): do not try to erase buffer items one at a time --- simgear/sound/soundmgr_openal.cxx | 1 - 1 file changed, 1 deletion(-) 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(); -- 2.39.5