diff --git a/ExtLibs/Utilities/GStreamer.cs b/ExtLibs/Utilities/GStreamer.cs index 3416d28f46..7803b0cc3e 100644 --- a/ExtLibs/Utilities/GStreamer.cs +++ b/ExtLibs/Utilities/GStreamer.cs @@ -1306,7 +1306,8 @@ void ThreadStart(object datao) NativeMethods.gst_structure_get_int(caps_s, "width", out Width); NativeMethods.gst_structure_get_int(caps_s, "height", out Height); - var capsstring = NativeMethods.gst_caps_to_string(caps_s); + // Memory leak: gst_caps_to_string allocates memory that requires g_free() + // var capsstring = NativeMethods.gst_caps_to_string(caps_s); var buffer = NativeMethods.gst_sample_get_buffer(sample); if (buffer != IntPtr.Zero) {