diff options
author | Lennart Poettering <lennart@poettering.net> | 2007-07-26 13:58:50 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2007-07-26 13:58:50 +0000 |
commit | bbb347fa912a5891c18b93d886e3143ca0545a82 (patch) | |
tree | 3753fed5f91e953f75faffc884ccfc3f7ff50fa3 | |
parent | 042cb0939431b47e7d6ac91b89d8ef9ab0ce7744 (diff) |
properly free memblocks when skipping over them
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1545 fefdeb5f-60dc-0310-8127-8f9354f1896f
-rw-r--r-- | src/pulsecore/sink-input.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pulsecore/sink-input.c b/src/pulsecore/sink-input.c index 96836610..44d00ef8 100644 --- a/src/pulsecore/sink-input.c +++ b/src/pulsecore/sink-input.c @@ -475,8 +475,11 @@ void pa_sink_input_drop(pa_sink_input *i, size_t length) { pa_cvolume volume; if (pa_sink_input_peek(i, &chunk, &volume) >= 0) { - size_t l = chunk.length; + size_t l; + pa_memblock_unref(chunk.memblock); + + l = chunk.length; if (l > length) l = length; |