From 8b399b7133f5955199051749c8d943f24f29b80f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 5 Aug 2019 09:35:41 +0200 Subject: [PATCH] output/jack: use jack_free() for Windows compatibility --- src/output/plugins/JackOutputPlugin.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/output/plugins/JackOutputPlugin.cxx b/src/output/plugins/JackOutputPlugin.cxx index 2c13f7845..6b6289eb7 100644 --- a/src/output/plugins/JackOutputPlugin.cxx +++ b/src/output/plugins/JackOutputPlugin.cxx @@ -537,7 +537,10 @@ JackOutput::Start() jports = nullptr; } - AtScopeExit(jports) { free(jports); }; + AtScopeExit(jports) { + if (jports != nullptr) + jack_free(jports); + }; assert(num_dports > 0);