diff options
author | StapleButter <thetotalworm@gmail.com> | 2018-12-14 14:20:59 +0100 |
---|---|---|
committer | StapleButter <thetotalworm@gmail.com> | 2018-12-14 14:20:59 +0100 |
commit | 10ebae42db726655b6685550a1e9cf8fe99783b1 (patch) | |
tree | 6efbca0075b21e9a85e86fa9e700b3a8f387950c /src/libui_sdl | |
parent | 46bc2dba3310787f84b99e8b544ccb324b840f1f (diff) |
avoid crash when the mic WAV couldn't be loaded
Diffstat (limited to 'src/libui_sdl')
-rw-r--r-- | src/libui_sdl/main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libui_sdl/main.cpp b/src/libui_sdl/main.cpp index 39c2ac3..7374ae6 100644 --- a/src/libui_sdl/main.cpp +++ b/src/libui_sdl/main.cpp @@ -154,6 +154,7 @@ void MicLoadWav(char* name) memset(&format, 0, sizeof(SDL_AudioSpec)); if (MicWavBuffer) delete[] MicWavBuffer; + MicWavBuffer = NULL; MicWavLength = 0; u8* buf; |