qtmux: Fix leak gst_qt_mux_can_renegotiate () gets called everywhere following that pattern: return gst_qt_mux_can_renegotiate (ref(self)); This means the reference must be released both in the success and failure cases, it was only done in the success case.
diff --git a/gst/isomp4/gstqtmux.c b/gst/isomp4/gstqtmux.c index 9a6cd7b..195fa2f 100644 --- a/gst/isomp4/gstqtmux.c +++ b/gst/isomp4/gstqtmux.c
@@ -4857,6 +4857,7 @@ "pad %s accepted renegotiation to %" GST_PTR_FORMAT " from %" GST_PTR_FORMAT, GST_PAD_NAME (pad), caps, current_caps); gst_caps_unref (current_caps); + gst_object_unref (qtmux); return TRUE; } @@ -5233,6 +5234,7 @@ "pad %s accepted renegotiation to %" GST_PTR_FORMAT " from %" GST_PTR_FORMAT, GST_PAD_NAME (pad), caps, current_caps); gst_caps_unref (current_caps); + gst_object_unref (qtmux); return TRUE; } @@ -5775,6 +5777,7 @@ "pad %s accepted renegotiation to %" GST_PTR_FORMAT " from %" GST_PTR_FORMAT, GST_PAD_NAME (pad), caps, current_caps); gst_caps_unref (current_caps); + gst_object_unref (qtmux); return TRUE; }