rtp: opuspay: fix memory leak in gst_rtp_opus_pay_setcaps.
[platform/upstream/gst-plugins-good.git] / gst / rtp / gstrtpopuspay.c
index f353800..ba54134 100644 (file)
@@ -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);