Finish the previous fix for GMutex, GRecMutex, GRWLock and GCond
authorJeffrey Stedfast <fejj@gnome.org>
Sun, 30 Jun 2013 18:01:34 +0000 (14:01 -0400)
committerJeffrey Stedfast <fejj@gnome.org>
Sun, 30 Jun 2013 18:02:38 +0000 (14:02 -0400)
glib/gthread-posix.c
glib/gthread-win32.c

index d57a9cb..403a014 100644 (file)
@@ -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;
 }
 
 /**
index c54f2bd..1f832e3 100644 (file)
@@ -198,6 +198,7 @@ void
 g_rec_mutex_clear (GRecMutex *mutex)
 {
   g_rec_mutex_impl_free (mutex->p);
+  mutex->p = NULL;
 }
 
 void