codec-utils: Don't leak bytewriter data

In error cases, don't forget to reset it.
This commit is contained in:
Edward Hervey 2018-12-16 11:14:47 +01:00 committed by Edward Hervey
parent aa910c3cb7
commit f9176b8288

View file

@ -1567,6 +1567,7 @@ gst_codec_utils_opus_create_header (guint32 rate,
if (!hdl) {
GST_WARNING ("Error creating header");
gst_byte_writer_reset (&bw);
return NULL;
}