]> git.mxchange.org Git - simgear.git/commitdiff
Let the application free the buffer data.
authorehofman <ehofman>
Sat, 12 Nov 2005 12:22:23 +0000 (12:22 +0000)
committerehofman <ehofman>
Sat, 12 Nov 2005 12:22:23 +0000 (12:22 +0000)
simgear/sound/sample_openal.cxx
simgear/sound/sample_openal.hxx

index 705b4d545eceec5c833a2f217476101dda15c283..6f913bd881f062b316496209de0ca4b2ac36e710 100644 (file)
@@ -179,8 +179,6 @@ SGSoundSample::SGSoundSample( unsigned char *_data, int len, int _freq ) :
         throw sg_exception("Failed to buffer data.");
     }
 
-    free(_data);
-
     print_openal_error("constructor return");
 }
 
index 905ce8a106b49ba427dce11dc57b85be04b4b0cd..381164b4b22029f75024c638fd04ee4143636251 100644 (file)
@@ -115,6 +115,7 @@ public:
     /**
      * Constructor.
      * @param _data Pointer to a memory buffer containing the sample data
+       the application is responsible for freeing the buffer data.
      * @param len Byte length of array
      * @param _freq Frequency of the provided data (bytes per second)
        should usually be true unless you want to manipulate the data