]> git.mxchange.org Git - simgear.git/blobdiff - simgear/sound/sample_openal.cxx
OpenAL buffer management; add a buffer cache to prevent loading the same sample in...
[simgear.git] / simgear / sound / sample_openal.cxx
index 917f0596dade294c8d7993bfbdd89cc03bb8c58f..011e0fd399a3bf56c51239bfd5818ad20279f20c 100644 (file)
@@ -143,12 +143,6 @@ SGSoundSample::SGSoundSample( unsigned char *data, int len, int freq, int format
 
 // destructor
 SGSoundSample::~SGSoundSample() {
-#if 0
-    if (_data != NULL) {
-        delete[] _data;
-        _data = NULL;
-    }
-#endif
 }
 
 void SGSoundSample::set_base_position( SGVec3d pos ) {