avoid crash when the mic WAV couldn't be loaded
This commit is contained in:
parent
46bc2dba33
commit
10ebae42db
|
@ -154,6 +154,7 @@ void MicLoadWav(char* name)
|
|||
memset(&format, 0, sizeof(SDL_AudioSpec));
|
||||
|
||||
if (MicWavBuffer) delete[] MicWavBuffer;
|
||||
MicWavBuffer = NULL;
|
||||
MicWavLength = 0;
|
||||
|
||||
u8* buf;
|
||||
|
|
Loading…
Reference in New Issue