From 1deb487ccc9fbb40f4abbe7695048609a6c5a99d Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 29 Jun 2013 21:47:54 +0200 Subject: Add some more AudioFile protection (mutex/magic word) --- src/audiofile.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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; -- cgit v1.2.3