From 4e5d7165654bf8936dbb5ba220bb8e08d076c4e1 Mon Sep 17 00:00:00 2001 From: Knut Andre Tidemann Date: Mon, 22 Jul 2019 10:28:50 +0200 Subject: [PATCH] rtp: opuspay: fix memory leak in gst_rtp_opus_pay_setcaps. The src caps were never dereferenced, causing a memory leak. --- gst/rtp/gstrtpopuspay.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst/rtp/gstrtpopuspay.c b/gst/rtp/gstrtpopuspay.c index f353800..ba54134 100644 --- a/gst/rtp/gstrtpopuspay.c +++ b/gst/rtp/gstrtpopuspay.c @@ -125,6 +125,7 @@ gst_rtp_opus_pay_setcaps (GstRTPBasePayload * payload, GstCaps * caps) if (!gst_value_can_intersect (&default_value, value)) encoding_name = "X-GST-OPUS-DRAFT-SPITTKA-00"; } + gst_caps_unref (src_caps); } s = gst_caps_get_structure (caps, 0); -- 2.7.4