mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
alsasink: Fix Memory leak in payload not succuss case
https://bugzilla.gnome.org/show_bug.cgi?id=788114
This commit is contained in:
parent
8d52a107a4
commit
0e8a510eda
1 changed files with 2 additions and 0 deletions
|
@ -1163,6 +1163,8 @@ gst_alsasink_payload (GstAudioBaseSink * sink, GstBuffer * buf)
|
|||
|
||||
if (!gst_audio_iec61937_payload (iinfo.data, iinfo.size,
|
||||
oinfo.data, oinfo.size, &sink->ringbuffer->spec, G_BIG_ENDIAN)) {
|
||||
gst_buffer_unmap (buf, &iinfo);
|
||||
gst_buffer_unmap (out, &oinfo);
|
||||
gst_buffer_unref (out);
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue