[libsoup] tests: fix a mutex-handling bug exposed by new glib



commit c02b802e92663bc376030254c0017893a0c175f9
Author: Dan Winship <danw gnome org>
Date:   Tue Jul 22 09:21:07 2014 -0400

    tests: fix a mutex-handling bug exposed by new glib
    
    The new futex-based GMutex notices that we were destroying a locked
    mutex and complains. Fix that.

 tests/test-utils.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/tests/test-utils.c b/tests/test-utils.c
index 8fc7024..b3a0ba9 100644
--- a/tests/test-utils.c
+++ b/tests/test-utils.c
@@ -460,6 +460,7 @@ soup_test_server_get_uri (SoupServer    *server,
                while (!data.uri)
                        g_cond_wait (&data.cond, &data.mutex);
 
+               g_mutex_unlock (&data.mutex);
                g_mutex_clear (&data.mutex);
                g_cond_clear (&data.cond);
                uri = data.uri;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]