]> git.mxchange.org Git - simgear.git/commitdiff
The sample is now managed by a SGSharedPtr and shouldn't be deleted explicitely
authorfredb <fredb>
Tue, 24 Jan 2006 21:49:56 +0000 (21:49 +0000)
committerfredb <fredb>
Tue, 24 Jan 2006 21:49:56 +0000 (21:49 +0000)
simgear/sound/soundmgr_openal.cxx

index 971bea6d2c4d1582ce2f20d5c955c40da8d8977d..df67e9df89754020fb352bf58a96d842b9dee358 100644 (file)
@@ -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;