diff options
author | Tanu Kaskinen <tanu.kaskinen@linux.intel.com> | 2013-07-16 13:58:47 +0300 |
---|---|---|
committer | Tanu Kaskinen <tanu.kaskinen@linux.intel.com> | 2013-07-16 14:01:06 +0300 |
commit | afb2c8f9e335a05e5f529723f025ebfdfb1ffea0 (patch) | |
tree | 548f3af74f2921e6d47bdfd39bca6dba1b794382 | |
parent | 16886bbf87cb02c13f4ebe89150c55003e80cac7 (diff) | |
download | pulseaudio-afb2c8f9e335a05e5f529723f025ebfdfb1ffea0.tar.gz |
sink: Add missing curly braces
The missing braces didn't cause any practical problems, but obviously
the intention was to reset the chunk only if the memblock was
non-NULL.
-rw-r--r-- | src/pulsecore/sink.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pulsecore/sink.c b/src/pulsecore/sink.c index 902a53717..3cdabd4f9 100644 --- a/src/pulsecore/sink.c +++ b/src/pulsecore/sink.c @@ -1106,9 +1106,10 @@ static void inputs_drop(pa_sink *s, pa_mix_info *info, unsigned n, pa_memchunk * } if (m) { - if (m->chunk.memblock) + if (m->chunk.memblock) { pa_memblock_unref(m->chunk.memblock); pa_memchunk_reset(&m->chunk); + } pa_sink_input_unref(m->userdata); m->userdata = NULL; |