Commit e6b93cf2 authored by Christian Hergert's avatar Christian Hergert

egg-task-cache: use g_clear_pointer()

Just convenient, has extra race defensiveness, and preferred style for
parent be692737
......@@ -233,8 +233,7 @@ cancelled_data_free (gpointer data)
CancelledData *cancelled = data;
cancelled->self->key_destroy_func (cancelled->key);
cancelled->key = NULL;
g_clear_pointer (&cancelled->key, cancelled->self->key_destroy_func);
g_cancellable_disconnect (cancelled->cancellable, cancelled->cancelled_id);
g_clear_object (&cancelled->cancellable);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment