summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-08-05 09:35:41 +0200
committerMax Kellermann <max@musicpd.org>2019-08-06 11:34:56 +0200
commitbcccc8f66c8e7f320828b585af487fabba004b19 (patch)
tree95999cde37bcc274b772e6778d241266fafbc45a
parent848c63e2d55130c4e2ed3f3ef71ed9ea99a8bdba (diff)
output/jack: use jack_free() for Windows compatibility
-rw-r--r--NEWS2
-rw-r--r--src/output/plugins/JackOutputPlugin.cxx5
2 files changed, 6 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index c4218b86d..3bb42ed36 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,8 @@ ver 0.21.13 (not yet released)
- cdio_paranoia: require libcdio-paranoia 10.2+0.93+1
* decoder
- mad: fix crackling sound (0.21.12 regression)
+* output
+ - jack: improved Windows compatibility
ver 0.21.12 (2019/08/03)
* decoder
diff --git a/src/output/plugins/JackOutputPlugin.cxx b/src/output/plugins/JackOutputPlugin.cxx
index 9204e9c1f..900c2baaf 100644
--- a/src/output/plugins/JackOutputPlugin.cxx
+++ b/src/output/plugins/JackOutputPlugin.cxx
@@ -531,7 +531,10 @@ JackOutput::Start()
jports = nullptr;
}
- AtScopeExit(jports) { free(jports); };
+ AtScopeExit(jports) {
+ if (jports != nullptr)
+ jack_free(jports);
+ };
assert(num_dports > 0);