From 8eb3f2a74c05cc638cde541ba666935dbeb1569c Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Sat, 28 May 2022 16:46:04 +0530 Subject: [PATCH] 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: --- subprojects/gst-plugins-good/ext/jack/gstjackaudiosrc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-good/ext/jack/gstjackaudiosrc.c b/subprojects/gst-plugins-good/ext/jack/gstjackaudiosrc.c index 40784fa4a8..85dff1f22f 100644 --- a/subprojects/gst-plugins-good/ext/jack/gstjackaudiosrc.c +++ b/subprojects/gst-plugins-good/ext/jack/gstjackaudiosrc.c @@ -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 {