[Bf-blender-cvs] [223aff987a] master: Fix memory leak when building without audaspace
Sergey Sharybin
noreply at git.blender.org
Mon Feb 6 11:18:35 CET 2017
Commit: 223aff987aba127243658ab181dd473198a06aa5
Author: Sergey Sharybin
Date: Mon Feb 6 11:18:20 2017 +0100
Branches: master
https://developer.blender.org/rB223aff987aba127243658ab181dd473198a06aa5
Fix memory leak when building without audaspace
===================================================================
M source/blender/blenkernel/intern/sound.c
===================================================================
diff --git a/source/blender/blenkernel/intern/sound.c b/source/blender/blenkernel/intern/sound.c
index 2228812711..8469351c54 100644
--- a/source/blender/blenkernel/intern/sound.c
+++ b/source/blender/blenkernel/intern/sound.c
@@ -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)
More information about the Bf-blender-cvs
mailing list