diff options
author | Joerg Mueller <nexyon@gmail.com> | 2011-06-22 00:14:07 +0400 |
---|---|---|
committer | Joerg Mueller <nexyon@gmail.com> | 2011-06-22 00:14:07 +0400 |
commit | 7ba4362c72c3ccd4763762414bd928682a51b7ce (patch) | |
tree | 23b0102b16afafd8c9a91e2b012ec8418c040751 | |
parent | 3d932ba4968d8caa3c936d9186439781e7cedca0 (diff) |
3D Audio GSoC:
Memory bug fix.
-rw-r--r-- | source/blender/blenkernel/intern/sound.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/sound.c b/source/blender/blenkernel/intern/sound.c index f42492ef713..9e9df24be32 100644 --- a/source/blender/blenkernel/intern/sound.c +++ b/source/blender/blenkernel/intern/sound.c @@ -315,6 +315,11 @@ void sound_free(struct bSound* sound) sound->handle = NULL; sound->playback_handle = NULL; } + + if(sound->cache) + { + AUD_unload(sound->cache); + } } static float sound_get_volume(Scene* scene, Sequence* sequence, float time) |