The sample is now managed by a SGSharedPtr and shouldn't be deleted explicitely
This commit is contained in:
parent
c2c0e19305
commit
610e447d7c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user