output/jack: use jack_free() for Windows compatibility

This commit is contained in:
Max Kellermann 2019-08-05 09:35:41 +02:00
parent 848c63e2d5
commit bcccc8f66c
2 changed files with 6 additions and 1 deletions

2
NEWS
View File

@ -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

View File

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