omx: Fix a missing g_free() in error path

This fixes a memory leak with g_strdup() when an error occurs.

https://bugzilla.gnome.org/show_bug.cgi?id=731141
This commit is contained in:
Kazunori Kobayashi 2013-06-27 21:59:29 +09:00 committed by Sebastian Dröge
parent 3ed713db0d
commit 4c488d425d

View file

@ -687,6 +687,7 @@ gst_omx_component_new (GstObject * parent, const gchar * core_name,
"Failed to get component handle '%s' from core '%s': 0x%08x",
component_name, core_name, err);
gst_omx_core_release (core);
g_free (comp->name);
g_slice_free (GstOMXComponent, comp);
return NULL;
}