sink, source: Fix a volume change leak
authorTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Tue, 31 Mar 2015 09:39:53 +0000 (12:39 +0300)
committerTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Tue, 31 Mar 2015 17:36:20 +0000 (20:36 +0300)
commit1f659cc836cdfea956479669d9e26f6c9bad06be
tree8582d1d04347dcc4b5d30ffbbeca340169e17bfb
parent30b6c111a67ca470e02964233017d639bce250ad
sink, source: Fix a volume change leak

When a sink or source is freed, there may be pending volume changes that
didn't get applied before the IO thread got torn down. Those pending
changes need to be freed.

The memory leak was reported here:
http://thread.gmane.org/gmane.comp.audio.pulseaudio.general/23162/focus=23169

Reported-by: Alexander E. Patrakov <patrakov@gmail.com>
src/pulsecore/sink.c
src/pulsecore/source.c