diff options
-rw-r--r-- | src/audiofile.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/audiofile.cc b/src/audiofile.cc index 67481b2..511df27 100644 --- a/src/audiofile.cc +++ b/src/audiofile.cc @@ -61,6 +61,7 @@ bool AudioFile::isValid() void AudioFile::unload() { + MutexAutolock l(mutex); if(data == preloaded_data) { delete data; data = NULL; |