omx: Possible Memory leak in gst_caps_from_string

https://bugzilla.gnome.org/show_bug.cgi?id=784978
This commit is contained in:
Satya Prakash Gupta 2017-07-17 18:36:36 +05:30 committed by Sebastian Dröge
parent 45eaf9cfc6
commit 5e6c3f170f

View file

@ -2636,6 +2636,7 @@ _class_init (gpointer g_class, gpointer data)
templ = gst_pad_template_new ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, caps);
g_free (template_caps);
gst_element_class_add_pad_template (element_class, templ);
gst_caps_unref (caps);
}
err = NULL;
@ -2662,6 +2663,7 @@ _class_init (gpointer g_class, gpointer data)
templ = gst_pad_template_new ("src", GST_PAD_SRC, GST_PAD_ALWAYS, caps);
g_free (template_caps);
gst_element_class_add_pad_template (element_class, templ);
gst_caps_unref (caps);
}
if ((hacks =