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:
parent
f8bf3a84ef
commit
50e7096a86
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user