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,9 +34,12 @@
#include <stdlib.h>
FGATCVoice::FGATCVoice() {
SoundData = 0;
rawSoundData = 0;
}
FGATCVoice::~FGATCVoice() {
if (rawSoundData)
free( rawSoundData );
delete SoundData;
}