]> git.mxchange.org Git - flightgear.git/blobdiff - src/ATC/ATCVoice.cxx
Modified Files:
[flightgear.git] / src / ATC / ATCVoice.cxx
index 62524609fcb2f733ae5027963541fca501b3033d..682cd24a4ed72b4f70e321f26c05a8ef191686df 100644 (file)
 #include <stdlib.h>
 
 FGATCVoice::FGATCVoice() {
+  SoundData = 0;
+  rawSoundData = 0;
 }
 
 FGATCVoice::~FGATCVoice() {
-    free( rawSoundData );
+    if (rawSoundData)
+        free( rawSoundData );
     delete SoundData;
 }