From 747542762ebcfa92760ab3ba2281c5be8b5fade4 Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Wed, 9 Apr 2014 15:41:11 +0100 Subject: asfmux: remove unnecessary test We've been dereferencing that object like there's no tomorrow in the code just before that. Coverity 206369 --- gst/asfmux/gstasfmux.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'gst/asfmux') diff --git a/gst/asfmux/gstasfmux.c b/gst/asfmux/gstasfmux.c index ee0435c79..791193e1a 100644 --- a/gst/asfmux/gstasfmux.c +++ b/gst/asfmux/gstasfmux.c @@ -1331,11 +1331,9 @@ gst_asf_mux_start_file (GstAsfMux * asfmux) gst_asf_mux_write_ext_content_description (asfmux, &bufdata, asftags->tags); } - if (asftags) { - if (asftags->tags) - gst_tag_list_unref (asftags->tags); - g_free (asftags); - } + if (asftags->tags) + gst_tag_list_unref (asftags->tags); + g_free (asftags); /* writing header extension objects */ gst_asf_mux_write_header_extension (asfmux, &bufdata, stream_num * -- cgit v1.2.1