diff --git a/simgear/sound/soundmgr_openal.cxx b/simgear/sound/soundmgr_openal.cxx index 971bea6d..df67e9df 100644 --- a/simgear/sound/soundmgr_openal.cxx +++ b/simgear/sound/soundmgr_openal.cxx @@ -218,8 +218,6 @@ bool SGSoundMgr::remove( const string &refname ) { if ( sample_it != samples.end() ) { // first stop the sound from playing (so we don't bomb the // audio scheduler) - SGSoundSample *sample = sample_it->second; - delete sample; samples.erase( sample_it ); // cout << "sndmgr: removed -> " << refname << endl;