summaryrefslogtreecommitdiff
path: root/gio/gcancellable.c
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2012-09-03 08:33:13 -0400
committerDan Winship <danw@gnome.org>2012-09-03 08:33:13 -0400
commit3389e6b686d4aad739780927b4db333e7d8af0c0 (patch)
treea5f6717b41d14aa9872149bc128092703d6c4fcb /gio/gcancellable.c
parent27f34bc1a3cf658929735108d927b710a24592f1 (diff)
downloadglib-wip/free.tar.gz
gio stuffwip/free
Diffstat (limited to 'gio/gcancellable.c')
-rw-r--r--gio/gcancellable.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/gio/gcancellable.c b/gio/gcancellable.c
index a1b153b45..b800c4096 100644
--- a/gio/gcancellable.c
+++ b/gio/gcancellable.c
@@ -759,11 +759,8 @@ g_cancellable_source_new (GCancellable *cancellable)
}
void
-_g_cancellable_deinit (void)
+g_cancellable_cleanup (void)
{
- if (cancellable_cond != NULL)
- {
- g_cond_free (cancellable_cond);
- cancellable_cond = NULL;
- }
+ g_cond_clear (&cancellable_cond);
+ g_mutex_clear (&cancellable_mutex);
}