mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-21 05:09:46 -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));
|
memset(&format, 0, sizeof(SDL_AudioSpec));
|
||||||
|
|
||||||
if (MicWavBuffer) delete[] MicWavBuffer;
|
if (MicWavBuffer) delete[] MicWavBuffer;
|
||||||
|
MicWavBuffer = NULL;
|
||||||
MicWavLength = 0;
|
MicWavLength = 0;
|
||||||
|
|
||||||
u8* buf;
|
u8* buf;
|
||||||
|
Reference in New Issue
Block a user