rtpg726depay: don't leak input buffer

https://bugzilla.gnome.org/show_bug.cgi?id=749543
This commit is contained in:
Nicola Murino 2015-05-18 16:34:13 +02:00 committed by Tim-Philipp Müller
parent c60038f188
commit 335afc982b

View file

@ -334,6 +334,8 @@ gst_rtp_g726_depay_process (GstRTPBaseDepayload * depayload, GstBuffer * buf)
gst_buffer_unmap (outbuf, &map);
}
gst_rtp_buffer_unmap (&rtp);
if (marker) {
/* mark start of talkspurt with RESYNC */
GST_BUFFER_FLAG_SET (outbuf, GST_BUFFER_FLAG_RESYNC);
@ -342,7 +344,11 @@ gst_rtp_g726_depay_process (GstRTPBaseDepayload * depayload, GstBuffer * buf)
return outbuf;
bad_len:
return NULL;
{
gst_rtp_buffer_unmap (&rtp);
return NULL;
}
}
static void