mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
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
2 changed files with 3 additions and 0 deletions
|
@ -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…
Reference in a new issue