Finish the previous fix for GMutex, GRecMutex, GRWLock and GCond

This commit is contained in:
Jeffrey Stedfast 2013-06-30 14:01:34 -04:00
parent 56348210f3
commit dfbac178bd
2 changed files with 4 additions and 0 deletions

View File

@ -362,6 +362,7 @@ void
g_rec_mutex_clear (GRecMutex *rec_mutex) g_rec_mutex_clear (GRecMutex *rec_mutex)
{ {
g_rec_mutex_impl_free (rec_mutex->p); 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_clear (GRWLock *rw_lock)
{ {
g_rw_lock_impl_free (rw_lock->p); g_rw_lock_impl_free (rw_lock->p);
rw_lock->p = NULL;
} }
/** /**
@ -723,6 +725,7 @@ void
g_cond_clear (GCond *cond) g_cond_clear (GCond *cond)
{ {
g_cond_impl_free (cond->p); g_cond_impl_free (cond->p);
cond->p = NULL;
} }
/** /**

View File

@ -198,6 +198,7 @@ void
g_rec_mutex_clear (GRecMutex *mutex) g_rec_mutex_clear (GRecMutex *mutex)
{ {
g_rec_mutex_impl_free (mutex->p); g_rec_mutex_impl_free (mutex->p);
mutex->p = NULL;
} }
void void