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
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-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)