diff options
author | Edward Hervey <edward@centricular.com> | 2018-12-16 11:14:47 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2019-05-01 17:26:48 +0100 |
commit | 061546d94ccc2644ba536d5f00b34249ead69325 (patch) | |
tree | 500e738a68e0c94a8d9e06a51fc18bd5a3e8b59d | |
parent | 5b2a20ae30dd40cda483812c6b571319f41789bf (diff) | |
download | gstreamer-plugins-base-061546d94ccc2644ba536d5f00b34249ead69325.tar.gz |
codec-utils: Don't leak bytewriter data
In error cases, don't forget to reset it.
-rw-r--r-- | gst-libs/gst/pbutils/codec-utils.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gst-libs/gst/pbutils/codec-utils.c b/gst-libs/gst/pbutils/codec-utils.c index 3648ab76c..8a2f6c30b 100644 --- a/gst-libs/gst/pbutils/codec-utils.c +++ b/gst-libs/gst/pbutils/codec-utils.c @@ -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; } |