asfmux: Don't leak bytereader
By making it go through the error path that takes care of cleanups CID #1212168
This commit is contained in:
parent
2d0a791348
commit
6baeb94dce
@ -597,7 +597,7 @@ gst_asf_parse_packet_from_data (guint8 * data, gsize size, GstBuffer * buffer,
|
|||||||
if (first & 0x60) {
|
if (first & 0x60) {
|
||||||
GST_ERROR ("Error correction data length should be "
|
GST_ERROR ("Error correction data length should be "
|
||||||
"set to 0 and is reserved for future use.");
|
"set to 0 and is reserved for future use.");
|
||||||
return FALSE;
|
goto error;
|
||||||
}
|
}
|
||||||
err_cor_len = (first & 0x0F);
|
err_cor_len = (first & 0x0F);
|
||||||
err_length += err_cor_len;
|
err_length += err_cor_len;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user