]> git.mxchange.org Git - simgear.git/blobdiff - simgear/sound/sample_openal.cxx
Silently ignore previous errors to prevent halting the program on silly errors
[simgear.git] / simgear / sound / sample_openal.cxx
index db7cd465dc3786560a1199d7341868e08cf16a69..6a4f7cb92dbe2603b35e5a5cb7d42c67a08920d3 100644 (file)
@@ -192,7 +192,7 @@ SGSoundSample::SGSoundSample( void** data, int len, int freq, int format ) :
 
 // destructor
 SGSoundSample::~SGSoundSample() {
-    if (_data) free(_data);
+    if ( _data != NULL ) free(_data);
 }
 
 void SGSoundSample::update_pos_and_orientation() {