From 600a9ee4c52c4867bb2075a9df5728cc061413ec Mon Sep 17 00:00:00 2001 From: ehofman Date: Fri, 16 Oct 2009 11:37:52 +0000 Subject: [PATCH] _data is not an array of pointer --- simgear/sound/sample_openal.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simgear/sound/sample_openal.hxx b/simgear/sound/sample_openal.hxx index 49a7c01e..acc7fb73 100644 --- a/simgear/sound/sample_openal.hxx +++ b/simgear/sound/sample_openal.hxx @@ -52,7 +52,7 @@ private: // Position of the source sound. SGVec3d _absolute_pos; // absolute position - SGVec3f _relative_pos; // position relative to the base position + SGVec3d _relative_pos; // position relative to the base position SGVec3d _direction; // orientation offset SGVec3d _velocity; // Velocity of the source sound. @@ -201,7 +201,7 @@ public: * free the data associated with this sample */ inline void free_data() { - if (_data != NULL) { delete[] _data; _data = NULL; } + if (_data != NULL) { delete _data; _data = NULL; } } /** -- 2.39.5