jack: Always use jack_free as specified by the docs

Fixes a crash on Windows due to a CRT mismatch. The JACK installation
still uses MSVCRT, and we the Universal CRT for both MinGW and MSVC.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2497>
This commit is contained in:
Nirbheek Chauhan 2022-05-28 16:46:04 +05:30 committed by GStreamer Marge Bot
parent 4865f36344
commit a6db1a4c81

View file

@ -1055,7 +1055,7 @@ gst_jack_audio_src_getcaps (GstBaseSrc * bsrc, GstCaps * filter)
if (ports != NULL) {
for (; ports[max]; max++);
free (ports);
jack_free (ports);
} else
max = 0;
} else {