[glib] Finish the previous fix for GMutex, GRecMutex, GRWLock and GCond
- From: Jeffrey Stedfast <fejj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Finish the previous fix for GMutex, GRecMutex, GRWLock and GCond
- Date: Sun, 30 Jun 2013 18:03:03 +0000 (UTC)
commit dfbac178bdcbcb042be928dcbeaa87742b511836
Author: Jeffrey Stedfast <fejj gnome org>
Date: Sun Jun 30 14:01:34 2013 -0400
Finish the previous fix for GMutex, GRecMutex, GRWLock and GCond
glib/gthread-posix.c | 3 +++
glib/gthread-win32.c | 1 +
2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/glib/gthread-posix.c b/glib/gthread-posix.c
index d57a9cb..403a014 100644
--- a/glib/gthread-posix.c
+++ b/glib/gthread-posix.c
@@ -362,6 +362,7 @@ void
g_rec_mutex_clear (GRecMutex *rec_mutex)
{
g_rec_mutex_impl_free (rec_mutex->p);
+ rec_mutex->p = NULL;
}
/**
@@ -519,6 +520,7 @@ void
g_rw_lock_clear (GRWLock *rw_lock)
{
g_rw_lock_impl_free (rw_lock->p);
+ rw_lock->p = NULL;
}
/**
@@ -723,6 +725,7 @@ void
g_cond_clear (GCond *cond)
{
g_cond_impl_free (cond->p);
+ cond->p = NULL;
}
/**
diff --git a/glib/gthread-win32.c b/glib/gthread-win32.c
index c54f2bd..1f832e3 100644
--- a/glib/gthread-win32.c
+++ b/glib/gthread-win32.c
@@ -198,6 +198,7 @@ void
g_rec_mutex_clear (GRecMutex *mutex)
{
g_rec_mutex_impl_free (mutex->p);
+ mutex->p = NULL;
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]