[glib: 2/5] glib/tests/autoptr: Release the acquired locks on GRecMutex
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 2/5] glib/tests/autoptr: Release the acquired locks on GRecMutex
- Date: Thu, 23 Jun 2022 17:07:12 +0000 (UTC)
commit e2d2db64339e94390e9ac1d4ddf2a3d43a2d5932
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date: Thu Jun 23 04:42:19 2022 +0200
glib/tests/autoptr: Release the acquired locks on GRecMutex
glib/tests/autoptr.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/glib/tests/autoptr.c b/glib/tests/autoptr.c
index 1b2dd7b094..dedbe5cc9e 100644
--- a/glib/tests/autoptr.c
+++ b/glib/tests/autoptr.c
@@ -426,6 +426,7 @@ rec_mutex_unlocked_thread (gpointer data)
{
GRecMutex *rec_mutex = (GRecMutex *) data;
g_assert_true (g_rec_mutex_trylock (rec_mutex));
+ g_rec_mutex_unlock (rec_mutex);
return NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]