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:
authorCampbell Barton <ideasman42@gmail.com>2011-06-27 09:03:58 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-06-27 09:03:58 +0400
commitae49f6deb0e4a41ea0b50603472a7b2ee7b870e3 (patch)
tree8ac36b0bea3aceae3e730a143e49d3505eb4e3f1
parent69ff819a2eefa974ec4295eefc165d3f3548fffe (diff)
fix for a leak in sound_read_sound_buffer(), used when drawing the sequencer waveform.
-rw-r--r--source/blender/blenkernel/intern/sound.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/sound.c b/source/blender/blenkernel/intern/sound.c
index 0eb2392b012..f2e3537762f 100644
--- a/source/blender/blenkernel/intern/sound.c
+++ b/source/blender/blenkernel/intern/sound.c
@@ -498,8 +498,9 @@ int sound_scene_playing(struct Scene *scene)
int sound_read_sound_buffer(struct bSound* sound, float* buffer, int length, float start, float end)
{
AUD_Sound* limiter = AUD_limitSound(sound->cache, start, end);
- return AUD_readSound(limiter, buffer, length);
+ int ret= AUD_readSound(limiter, buffer, length);
AUD_unload(limiter);
+ return ret;
}
int sound_get_channels(struct bSound* sound)