mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
ssaparse: Fix buffer leak in error case
https://bugzilla.gnome.org/show_bug.cgi?id=785331
This commit is contained in:
parent
2bf83de168
commit
075dac486f
1 changed files with 3 additions and 1 deletions
|
@ -169,8 +169,10 @@ gst_ssa_parse_setcaps (GstPad * sinkpad, GstCaps * caps)
|
|||
|
||||
gst_buffer_ref (priv);
|
||||
|
||||
if (!gst_buffer_map (priv, &map, GST_MAP_READ))
|
||||
if (!gst_buffer_map (priv, &map, GST_MAP_READ)) {
|
||||
gst_buffer_unref (priv);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
GST_MEMDUMP_OBJECT (parse, "init section", map.data, map.size);
|
||||
|
||||
|
|
Loading…
Reference in a new issue