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
@ -169,8 +169,10 @@ gst_ssa_parse_setcaps (GstPad * sinkpad, GstCaps * caps)
|
|||||||
|
|
||||||
gst_buffer_ref (priv);
|
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;
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
GST_MEMDUMP_OBJECT (parse, "init section", map.data, map.size);
|
GST_MEMDUMP_OBJECT (parse, "init section", map.data, map.size);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user