Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoerg Mueller <nexyon@gmail.com>2011-06-22 00:14:07 +0400
committerJoerg Mueller <nexyon@gmail.com>2011-06-22 00:14:07 +0400
commit7ba4362c72c3ccd4763762414bd928682a51b7ce (patch)
tree23b0102b16afafd8c9a91e2b012ec8418c040751 /source/blender/blenkernel/intern/sound.c
parent3d932ba4968d8caa3c936d9186439781e7cedca0 (diff)
3D Audio GSoC:
Memory bug fix.
Diffstat (limited to 'source/blender/blenkernel/intern/sound.c')
-rw-r--r--source/blender/blenkernel/intern/sound.c5
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)