use the bight lighter _silence() instead of _flush() when destructing our little q
authorLennart Poettering <lennart@poettering.net>
Wed, 25 Jun 2008 22:33:07 +0000 (00:33 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 25 Jun 2008 22:33:07 +0000 (00:33 +0200)
src/pulsecore/memblockq.c

index a9f28a0..9ce3372 100644 (file)
@@ -110,7 +110,7 @@ pa_memblockq* pa_memblockq_new(
 void pa_memblockq_free(pa_memblockq* bq) {
     pa_assert(bq);
 
-    pa_memblockq_flush(bq);
+    pa_memblockq_silence(bq);
 
     if (bq->silence.memblock)
         pa_memblock_unref(bq->silence.memblock);