]> git.mxchange.org Git - simgear.git/commitdiff
Fix crash in SGSoundMgr::stop(): do not try to erase buffer items one at a time
authorehofman <ehofman>
Wed, 9 Dec 2009 09:38:07 +0000 (09:38 +0000)
committerTim Moore <timoore@redhat.com>
Fri, 11 Dec 2009 23:03:40 +0000 (00:03 +0100)
simgear/sound/soundmgr_openal.cxx

index 618d44f32f85b97fd477ee16aa1c3be060a66b89..2cba97807b1924f1a38d48df5f250b5d36c02ea0 100644 (file)
@@ -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();