summaryrefslogtreecommitdiff
path: root/gio/gcancellable.c
diff options
context:
space:
mode:
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);
}