The sample is now managed by a SGSharedPtr and shouldn't be deleted explicitely

This commit is contained in:
fredb 2006-01-24 21:49:56 +00:00
parent c2c0e19305
commit 610e447d7c

View File

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