diff --git a/libsecret/secret-methods.c b/libsecret/secret-methods.c index 48eb716..c0cbc99 100644 --- a/libsecret/secret-methods.c +++ b/libsecret/secret-methods.c @@ -51,7 +51,7 @@ static void search_closure_free (gpointer data) { SearchClosure *closure = data; - g_object_unref (closure->service); + g_clear_object (&closure->service); g_clear_object (&closure->cancellable); g_hash_table_unref (closure->items); g_variant_unref (closure->attributes);