mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 23:28:16 +00:00
codec-utils: Don't leak bytewriter data
In error cases, don't forget to reset it.
This commit is contained in:
parent
aa910c3cb7
commit
f9176b8288
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue