mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-01 11:29:40 -06:00
avoid crash when the mic WAV couldn't be loaded
This commit is contained in:
@ -154,6 +154,7 @@ void MicLoadWav(char* name)
|
||||
memset(&format, 0, sizeof(SDL_AudioSpec));
|
||||
|
||||
if (MicWavBuffer) delete[] MicWavBuffer;
|
||||
MicWavBuffer = NULL;
|
||||
MicWavLength = 0;
|
||||
|
||||
u8* buf;
|
||||
|
Reference in New Issue
Block a user