jack: Always use jack_free as specified by the docs
authorNirbheek Chauhan <nirbheek@centricular.com>
Sat, 28 May 2022 11:16:04 +0000 (16:46 +0530)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Sat, 28 May 2022 11:34:23 +0000 (11:34 +0000)
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>

subprojects/gst-plugins-good/ext/jack/gstjackaudiosrc.c

index b7e7330..c3e9f11 100644 (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 {