output/jack: use jack_free() for Windows compatibility

This commit is contained in:
Max Kellermann 2019-08-05 09:35:41 +02:00
parent 9d24f68f51
commit 8b399b7133

View File

@ -537,7 +537,10 @@ JackOutput::Start()
jports = nullptr;
}
AtScopeExit(jports) { free(jports); };
AtScopeExit(jports) {
if (jports != nullptr)
jack_free(jports);
};
assert(num_dports > 0);