mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 03:00:35 +00:00
omx: Possible Memory leak in gst_caps_from_string
https://bugzilla.gnome.org/show_bug.cgi?id=784978
This commit is contained in:
parent
45eaf9cfc6
commit
5e6c3f170f
1 changed files with 2 additions and 0 deletions
|
@ -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 =
|
||||
|
|
Loading…
Reference in a new issue