avdemux: Fix string memory leaks

https://bugzilla.gnome.org/show_bug.cgi?id=757454
This commit is contained in:
Vineeth TM 2015-11-02 10:20:02 +09:00 committed by Sebastian Dröge
parent 67e55e47e2
commit e5b9e11383

View file

@ -212,6 +212,7 @@ gst_ffmpegdemux_base_init (GstFFMpegDemuxClass * klass)
sinkcaps = gst_ffmpeg_formatid_to_caps (name);
sinktempl = gst_pad_template_new ("sink",
GST_PAD_SINK, GST_PAD_ALWAYS, sinkcaps);
g_free (name);
videosrctempl = gst_pad_template_new ("video_%u",
GST_PAD_SRC, GST_PAD_SOMETIMES, GST_CAPS_ANY);
audiosrctempl = gst_pad_template_new ("audio_%u",
@ -2116,6 +2117,8 @@ gst_ffmpegdemux_register (GstPlugin * plugin)
g_warning ("Register of type avdemux_%s failed", name);
g_free (type_name);
g_free (typefind_name);
g_free (extensions);
g_free (name);
return FALSE;
}