my testing, but documentation for g_static_mutex's isnt that great to
let us know what to do with a static mutex... considering it's...
static... pending respons from reporter for backport
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@66360
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
2011-12-16 Mike Blumenkrantz
* Fix possible 0 byte allocation in ecore-x
+
+2011-12-20 Carsten Haitzler (The Rasterman)
+
+ * Fix probable leak for g_static_mutex's on some architectures
int ret;
if (g_main_context_acquire(ctx))
- g_mutex_lock(mutex);
+ {
+ if (mutex) g_mutex_lock(mutex);
+ }
else
{
if (!_ecore_glib_cond)
ret = _ecore_glib_select__locked
(ctx, ecore_fds, rfds, wfds, efds, ecore_timeout);
- g_mutex_unlock(mutex);
+ if (mutex) g_mutex_unlock(mutex);
g_main_context_release(ctx);
+ g_static_mutex_free(&lock);
return ret;
}