alsasink: Fix Memory leak in payload not succuss case

https://bugzilla.gnome.org/show_bug.cgi?id=788114
This commit is contained in:
Ponnam Srinivas 2017-09-25 10:42:33 +05:30 committed by Sebastian Dröge
parent 8d52a107a4
commit 0e8a510eda

View file

@ -1163,6 +1163,8 @@ gst_alsasink_payload (GstAudioBaseSink * sink, GstBuffer * buf)
if (!gst_audio_iec61937_payload (iinfo.data, iinfo.size, if (!gst_audio_iec61937_payload (iinfo.data, iinfo.size,
oinfo.data, oinfo.size, &sink->ringbuffer->spec, G_BIG_ENDIAN)) { oinfo.data, oinfo.size, &sink->ringbuffer->spec, G_BIG_ENDIAN)) {
gst_buffer_unmap (buf, &iinfo);
gst_buffer_unmap (out, &oinfo);
gst_buffer_unref (out); gst_buffer_unref (out);
return NULL; return NULL;
} }