From ca4ee7020c74d6aad6dc30b2561e1ddea6a53a22 Mon Sep 17 00:00:00 2001 From: Robert Ancell Date: Fri, 16 Oct 2015 11:20:03 +0100 Subject: Use g_object_clear where we can for readibility --- common/user-list.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'common') diff --git a/common/user-list.c b/common/user-list.c index 2598bd49..1b198d1a 100644 --- a/common/user-list.c +++ b/common/user-list.c @@ -186,9 +186,7 @@ common_user_list_get_instance (void) void common_user_list_cleanup (void) { - if (singleton) - g_object_unref (singleton); - singleton = NULL; + g_clear_object (&singleton); } static CommonUser * -- cgit v1.2.1