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 - cdio_paranoia: require libcdio-paranoia 10.2+0.93+1
* decoder * decoder
- mad: fix crackling sound (0.21.12 regression) - mad: fix crackling sound (0.21.12 regression)
* output
- jack: improved Windows compatibility
ver 0.21.12 (2019/08/03) ver 0.21.12 (2019/08/03)
* decoder * decoder

View File

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