Commit 50e7096a authored by Garima Gaur's avatar Garima Gaur Committed by Sebastian Dröge

rtp: Fix some memory leaks in usage of gst_pad_get_current_caps()

https://bugzilla.gnome.org/show_bug.cgi?id=775071
parent f8bf3a84
......@@ -432,6 +432,7 @@ gst_rtp_h264_set_src_caps (GstRtpH264Depay * rtph264depay)
gst_caps_unref (tmp_caps);
}
gst_caps_unref (old_caps);
} else {
res =
gst_pad_set_caps (GST_RTP_BASE_DEPAYLOAD_SRCPAD (rtph264depay),
......
......@@ -181,6 +181,8 @@ gst_rtp_sbc_depay_setcaps (GstRTPBaseDepayload * base, GstCaps * caps)
}
gst_caps_unref (outcaps);
if (oldcaps)
gst_caps_unref (oldcaps);
return TRUE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment