diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2017-01-20 14:34:10 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2017-01-25 14:23:39 +0200 |
commit | 2e69d106e956673c41cc8f3a798c52af0c5ffd7a (patch) | |
tree | 5237fda176d3247e31ce680186761696fa17d351 | |
parent | 92743094e37e0deedc223305b9e0d652f2e4effc (diff) | |
download | gstreamer-plugins-bad-2e69d106e956673c41cc8f3a798c52af0c5ffd7a.tar.gz |
tsdemux: Don't leak pad name and template for Opus
It's set again (the same way) further below, overwriting the previously
allocated memory without freeing.
https://bugzilla.gnome.org/show_bug.cgi?id=777533
-rw-r--r-- | gst/mpegtsdemux/tsdemux.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/gst/mpegtsdemux/tsdemux.c b/gst/mpegtsdemux/tsdemux.c index abe21a152..20357a87f 100644 --- a/gst/mpegtsdemux/tsdemux.c +++ b/gst/mpegtsdemux/tsdemux.c @@ -1366,9 +1366,6 @@ create_pad_for_stream (MpegTSBase * base, MpegTSBaseStream * bstream, if (channels != -1) { is_audio = TRUE; - template = gst_static_pad_template_get (&audio_template); - name = g_strdup_printf ("audio_%04x", bstream->pid); - caps = gst_codec_utils_opus_create_caps (48000, channels, mapping_family, stream_count, coupled_count, |