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