diff options
author | Jeffrey Stedfast <fejj@gnome.org> | 2013-06-30 14:01:34 -0400 |
---|---|---|
committer | Jeffrey Stedfast <fejj@gnome.org> | 2013-06-30 14:02:38 -0400 |
commit | dfbac178bdcbcb042be928dcbeaa87742b511836 (patch) | |
tree | 0985591fef2d70a76eacc4b2e7f57f24042cc2a4 | |
parent | 56348210f38209a11902e54b2db41833aab36414 (diff) | |
download | glib-dfbac178bdcbcb042be928dcbeaa87742b511836.tar.gz |
Finish the previous fix for GMutex, GRecMutex, GRWLock and GCond
-rw-r--r-- | glib/gthread-posix.c | 3 | ||||
-rw-r--r-- | 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 d57a9cb4b..403a014b6 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 c54f2bdbc..1f832e3f4 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 |