1
0
Fork 0

Mathias Frhlich:

I have some bugfixes which will avoid fg just crashing if the sound device
could not be opened.
This commit is contained in:
ehofman 2006-03-03 15:13:42 +00:00
parent 1051288b9d
commit 813c518e07

View file

@ -34,10 +34,13 @@
#include <stdlib.h> #include <stdlib.h>
FGATCVoice::FGATCVoice() { FGATCVoice::FGATCVoice() {
SoundData = 0;
rawSoundData = 0;
} }
FGATCVoice::~FGATCVoice() { FGATCVoice::~FGATCVoice() {
free( rawSoundData ); if (rawSoundData)
free( rawSoundData );
delete SoundData; delete SoundData;
} }