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

https://bugzilla.gnome.org/show_bug.cgi?id=775071
This commit is contained in:
Garima Gaur 2016-12-01 15:06:06 +05:30 committed by Sebastian Dröge
parent f8bf3a84ef
commit 50e7096a86
2 changed files with 3 additions and 0 deletions

View file

@ -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),

View file

@ -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;