commit de95680bcef1f009f4f1ea5154a1c4d056c9eefb parent e055056f93d2567841fd8fd287ee01bc8a1cbaf9 Author: fundamental <[email protected]> Date: Wed, 17 Aug 2016 16:27:31 -0400 WaveEngine: Fix Possible Null Pointer Deref Diffstat:
M | src/Nio/WavEngine.cpp | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/Nio/WavEngine.cpp b/src/Nio/WavEngine.cpp @@ -119,7 +119,8 @@ void *WavEngine::AudioThread() -32768, 32767); } - file->writeStereoSamples(synth.buffersize, recordbuf_16bit); + if(file) + file->writeStereoSamples(synth.buffersize, recordbuf_16bit); } delete[] recordbuf_16bit;