mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
mpeg2dec: Fix buffer memory leak in error code path
https://bugzilla.gnome.org/show_bug.cgi?id=787817
This commit is contained in:
parent
c7594c4acb
commit
9213d690a8
1 changed files with 1 additions and 0 deletions
|
@ -1057,6 +1057,7 @@ gst_mpeg2dec_handle_frame (GstVideoDecoder * decoder,
|
||||||
gst_buffer_ref (buf);
|
gst_buffer_ref (buf);
|
||||||
if (!gst_buffer_map (buf, &minfo, GST_MAP_READ)) {
|
if (!gst_buffer_map (buf, &minfo, GST_MAP_READ)) {
|
||||||
GST_ERROR_OBJECT (mpeg2dec, "Failed to map input buffer");
|
GST_ERROR_OBJECT (mpeg2dec, "Failed to map input buffer");
|
||||||
|
gst_buffer_unref (buf);
|
||||||
return GST_FLOW_ERROR;
|
return GST_FLOW_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue