]> git.mxchange.org Git - simgear.git/blobdiff - simgear/sound/sample_openal.cxx
implement a round-robin scheme for random objects to make sure the same type of objec...
[simgear.git] / simgear / sound / sample_openal.cxx
index db7cd465dc3786560a1199d7341868e08cf16a69..16291d7da918bd15dd51c35853710e86cf2e04ec 100644 (file)
@@ -31,7 +31,7 @@
 #include <simgear/debug/logstream.hxx>
 #include <simgear/structure/exception.hxx>
 #include <simgear/misc/sg_path.hxx>
-#include <simgear/math/SGQuat.hxx>
+#include <simgear/math/SGMath.hxx>
 
 #include "soundmgr_openal.hxx"
 #include "sample_openal.hxx"
@@ -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() {