rtph265depay: fix caps leak
authorTim-Philipp Müller <tim@centricular.com>
Fri, 2 Jun 2017 10:30:15 +0000 (11:30 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 2 Jun 2017 10:30:15 +0000 (11:30 +0100)
gst/rtp/gstrtph265depay.c

index e31b6e6..d06b2d3 100644 (file)
@@ -541,6 +541,7 @@ gst_rtp_h265_set_src_caps (GstRtpH265Depay * rtph265depay)
 
       gst_caps_unref (tmp_caps);
     }
+    gst_caps_unref (old_caps);
   } else {
     res =
         gst_pad_set_caps (GST_RTP_BASE_DEPAYLOAD_SRCPAD (rtph265depay),