avoid crash when the mic WAV couldn't be loaded

This commit is contained in:
StapleButter 2018-12-14 14:20:59 +01:00
parent 46bc2dba33
commit 10ebae42db
1 changed files with 1 additions and 0 deletions

View File

@ -154,6 +154,7 @@ void MicLoadWav(char* name)
memset(&format, 0, sizeof(SDL_AudioSpec)); memset(&format, 0, sizeof(SDL_AudioSpec));
if (MicWavBuffer) delete[] MicWavBuffer; if (MicWavBuffer) delete[] MicWavBuffer;
MicWavBuffer = NULL;
MicWavLength = 0; MicWavLength = 0;
u8* buf; u8* buf;