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:
parent
1051288b9d
commit
813c518e07
1 changed files with 4 additions and 1 deletions
|
@ -34,10 +34,13 @@
|
|||
#include <stdlib.h>
|
||||
|
||||
FGATCVoice::FGATCVoice() {
|
||||
SoundData = 0;
|
||||
rawSoundData = 0;
|
||||
}
|
||||
|
||||
FGATCVoice::~FGATCVoice() {
|
||||
free( rawSoundData );
|
||||
if (rawSoundData)
|
||||
free( rawSoundData );
|
||||
delete SoundData;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue