From 610e447d7c162a58fcd3a71e3fa4f02d62a6d846 Mon Sep 17 00:00:00 2001 From: fredb Date: Tue, 24 Jan 2006 21:49:56 +0000 Subject: [PATCH] The sample is now managed by a SGSharedPtr and shouldn't be deleted explicitely --- simgear/sound/soundmgr_openal.cxx | 2 -- 1 file changed, 2 deletions(-) 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; -- 2.39.5