[nautilus/freedesktop-dbus] Use g_clear_object() instead of verbose code



commit ebc2d0728553cded8dcb5f65d0075e2e7c9d277e
Author: Federico Mena Quintero <federico gnome org>
Date:   Tue Dec 13 17:58:03 2011 -0600

    Use g_clear_object() instead of verbose code

 src/nautilus-freedesktop-dbus.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/src/nautilus-freedesktop-dbus.c b/src/nautilus-freedesktop-dbus.c
index ce17edc..a93e1d9 100644
--- a/src/nautilus-freedesktop-dbus.c
+++ b/src/nautilus-freedesktop-dbus.c
@@ -221,11 +221,7 @@ nautilus_freedesktop_dbus_dispose (GObject *object)
 		fdb->skeleton = NULL;
 	}
 
-	if (fdb->object_manager != NULL) {
-		g_object_unref (fdb->object_manager);
-		fdb->object_manager = NULL;
-	}
-
+	g_clear_object (&fdb->object_manager);
 	g_clear_object (&fdb->connection);
 	fdb->application = NULL;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]