avidemux: Fix string memory leak

codec_name is not being freed in all conditions leading to memory leak

https://bugzilla.gnome.org/show_bug.cgi?id=762117
This commit is contained in:
Vineeth TM 2016-02-16 09:02:30 +09:00 committed by Tim-Philipp Müller
parent 92affe2dec
commit dc70bfd36a

View file

@ -2452,9 +2452,8 @@ gst_avi_demux_parse_stream (GstAviDemux * avi, GstBuffer * buf)
gst_tag_list_add (stream->taglist, GST_TAG_MERGE_APPEND, tag_name, gst_tag_list_add (stream->taglist, GST_TAG_MERGE_APPEND, tag_name,
codec_name, NULL); codec_name, NULL);
g_free (codec_name);
} }
g_free (codec_name);
gst_buffer_unref (buf); gst_buffer_unref (buf);
return TRUE; return TRUE;