aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStapleButter <thetotalworm@gmail.com>2018-12-14 14:20:59 +0100
committerStapleButter <thetotalworm@gmail.com>2018-12-14 14:20:59 +0100
commit10ebae42db726655b6685550a1e9cf8fe99783b1 (patch)
tree6efbca0075b21e9a85e86fa9e700b3a8f387950c /src
parent46bc2dba3310787f84b99e8b544ccb324b840f1f (diff)
avoid crash when the mic WAV couldn't be loaded
Diffstat (limited to 'src')
-rw-r--r--src/libui_sdl/main.cpp1
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;