Fix memory leak when building without audaspace

This commit is contained in:
Sergey Sharybin
2017-02-06 11:18:20 +01:00
parent 351c409317
commit 223aff987a

View File

@@ -147,12 +147,12 @@ void BKE_sound_free(bSound *sound)
BKE_sound_free_waveform(sound);
#endif /* WITH_AUDASPACE */
if (sound->spinlock) {
BLI_spin_end(sound->spinlock);
MEM_freeN(sound->spinlock);
sound->spinlock = NULL;
}
#endif /* WITH_AUDASPACE */
}
}
void BKE_sound_make_local(Main *bmain, bSound *sound, const bool lib_local)