From: fredb Date: Tue, 24 Jan 2006 21:49:56 +0000 (+0000) Subject: The sample is now managed by a SGSharedPtr and shouldn't be deleted explicitely X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=610e447d7c162a58fcd3a71e3fa4f02d62a6d846;p=simgear.git The sample is now managed by a SGSharedPtr and shouldn't be deleted explicitely --- 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;