summaryrefslogtreecommitdiff
path: root/src/output
diff options
context:
space:
mode:
Diffstat (limited to 'src/output')
-rw-r--r--src/output/plugins/JackOutputPlugin.cxx5
1 files changed, 4 insertions, 1 deletions
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);