diff options
author | Kazunori Kobayashi <kkobayas@igel.co.jp> | 2013-06-27 21:59:29 +0900 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2014-06-03 09:23:41 +0200 |
commit | 4c488d425d2dfb3dbb7225aa55b0425050f0531b (patch) | |
tree | d9acc0e59019f819d259628edf71be59d98a0ed3 | |
parent | 3ed713db0d947a876b2c3988a6b30609871ecf9d (diff) | |
download | gst-omx-4c488d425d2dfb3dbb7225aa55b0425050f0531b.tar.gz |
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
-rw-r--r-- | omx/gstomx.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/omx/gstomx.c b/omx/gstomx.c index 6044668..7766eab 100644 --- a/omx/gstomx.c +++ b/omx/gstomx.c @@ -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; } |