]> git.mxchange.org Git - flightgear.git/blobdiff - src/ATC/ATCVoice.cxx
Melchior FRANZ:
[flightgear.git] / src / ATC / ATCVoice.cxx
index 6751f93e8d3f44df4db6250442190b573c966608..82721f420a9881d4dc703e0d3e84666013ba55fb 100644 (file)
@@ -37,7 +37,8 @@ FGATCVoice::FGATCVoice() {
 }
 
 FGATCVoice::~FGATCVoice() {
-    // delete SoundData;
+    free( rawSoundData );
+    delete SoundData;
 }
 
 // Load the two voice files - one containing the raw sound data (.wav) and one containing the word positions (.vce).
@@ -53,7 +54,7 @@ bool FGATCVoice::LoadVoice(string voice) {
 
         string file = voice + ".wav";
        
-       SoundData = new SGSoundSample( path.c_str(), file.c_str() );
+       SoundData = new SGSoundSample( path.c_str(), file.c_str(), false );
        rawDataSize = SoundData->get_size();
        rawSoundData = SoundData->get_data();