[gst-cvs] gst-openmax: util: Fix crash when dlopen() fails.
René Stadler
cymacs at kemper.freedesktop.org
Sun Feb 22 15:06:23 PST 2009
Module: gst-openmax
Branch: master
Commit: f5d5fa9f6d32af442ce5cf814b2cc2d9520865b8
URL: http://cgit.freedesktop.org/gstreamer/gst-openmax/commit/?id=f5d5fa9f6d32af442ce5cf814b2cc2d9520865b8
Author: René Stadler <mail at renestadler.de>
Date: Mon Feb 23 00:57:44 2009 +0200
util: Fix crash when dlopen() fails.
imp_free() calls g_mutex_free() on imp->mutex, which is still NULL.
Signed-off-by: René Stadler <mail at renestadler.de>
---
omx/gstomx_util.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/omx/gstomx_util.c b/omx/gstomx_util.c
index bd80ad3..e4b002f 100644
--- a/omx/gstomx_util.c
+++ b/omx/gstomx_util.c
@@ -138,7 +138,7 @@ imp_new (const gchar *name)
if (!handle)
{
g_warning ("%s\n", dlerror ());
- imp_free (imp);
+ g_free (imp);
return NULL;
}
More information about the Gstreamer-commits
mailing list