diff options
author | Max Kellermann <max@duempel.org> | 2009-11-07 15:17:48 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-11-07 15:17:48 +0100 |
commit | 41f3f12709a989e9f6691b77aa0e0e8abefbd415 (patch) | |
tree | c97124123c988b942bcdb64f377f05f56da8b3cd /src/output/jack_output_plugin.c | |
parent | 5d55b45654eacd479a93673f9ec9ad3627952a96 (diff) | |
download | mpd-41f3f12709a989e9f6691b77aa0e0e8abefbd415.tar.gz mpd-41f3f12709a989e9f6691b77aa0e0e8abefbd415.tar.xz mpd-41f3f12709a989e9f6691b77aa0e0e8abefbd415.zip |
output/jack: free source port names on exit
Make valgrind happy.
Diffstat (limited to '')
-rw-r--r-- | src/output/jack_output_plugin.c | 3 |
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]); |