summaryrefslogtreecommitdiff
path: root/src/audiofile.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-06-29 21:47:54 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2013-06-29 21:47:54 +0200
commit1deb487ccc9fbb40f4abbe7695048609a6c5a99d (patch)
tree09a0a6403c78d2a14bf75cac67f8045adae3cf06 /src/audiofile.cc
parent1827f1ab9bf44490cf24779e0eab8533845b4a77 (diff)
Add some more AudioFile protection (mutex/magic word)
Diffstat (limited to 'src/audiofile.cc')
-rw-r--r--src/audiofile.cc1
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;