summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/sink-input.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pulsecore/sink-input.c')
-rw-r--r--src/pulsecore/sink-input.c5
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;