Fix memory leak when building without audaspace
This commit is contained in:
@@ -147,12 +147,12 @@ void BKE_sound_free(bSound *sound)
|
|||||||
|
|
||||||
BKE_sound_free_waveform(sound);
|
BKE_sound_free_waveform(sound);
|
||||||
|
|
||||||
|
#endif /* WITH_AUDASPACE */
|
||||||
if (sound->spinlock) {
|
if (sound->spinlock) {
|
||||||
BLI_spin_end(sound->spinlock);
|
BLI_spin_end(sound->spinlock);
|
||||||
MEM_freeN(sound->spinlock);
|
MEM_freeN(sound->spinlock);
|
||||||
sound->spinlock = NULL;
|
sound->spinlock = NULL;
|
||||||
}
|
}
|
||||||
#endif /* WITH_AUDASPACE */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void BKE_sound_make_local(Main *bmain, bSound *sound, const bool lib_local)
|
void BKE_sound_make_local(Main *bmain, bSound *sound, const bool lib_local)
|
||||||
|
Reference in New Issue
Block a user