aboutsummaryrefslogtreecommitdiffstats
path: root/src/output
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-11-07 15:17:48 +0100
committerMax Kellermann <max@duempel.org>2009-11-07 15:17:48 +0100
commit41f3f12709a989e9f6691b77aa0e0e8abefbd415 (patch)
treec97124123c988b942bcdb64f377f05f56da8b3cd /src/output
parent5d55b45654eacd479a93673f9ec9ad3627952a96 (diff)
downloadmpd-41f3f12709a989e9f6691b77aa0e0e8abefbd415.tar.gz
mpd-41f3f12709a989e9f6691b77aa0e0e8abefbd415.tar.xz
mpd-41f3f12709a989e9f6691b77aa0e0e8abefbd415.zip
output/jack: free source port names on exit
Make valgrind happy.
Diffstat (limited to 'src/output')
-rw-r--r--src/output/jack_output_plugin.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/output/jack_output_plugin.c b/src/output/jack_output_plugin.c
index d2f7747dc..5b8926f0f 100644
--- a/src/output/jack_output_plugin.c
+++ b/src/output/jack_output_plugin.c
@@ -337,6 +337,9 @@ mpd_jack_finish(void *data)
{
struct jack_data *jd = data;
+ for (unsigned i = 0; i < jd->num_source_ports; ++i)
+ g_free(jd->source_ports[i]);
+
for (unsigned i = 0; i < jd->num_destination_ports; ++i)
g_free(jd->destination_ports[i]);