ssaparse: Fix buffer leak in error case

https://bugzilla.gnome.org/show_bug.cgi?id=785331
This commit is contained in:
Satya Prakash Gupta 2017-07-24 13:23:17 +05:30 committed by Sebastian Dröge
parent 2bf83de168
commit 075dac486f

View file

@ -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);