aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2013-05-12 23:03:12 -0500
committerCharles Kerr <charles.kerr@canonical.com>2013-05-12 23:03:12 -0500
commit36c6842f3eb704a72b5931152eb71d399d5f4cb1 (patch)
treef48109ec333aa90d2654928a84aeff2ecfd322fa
parentca06cb7631136e4ce1d376895b23053791e4f7c3 (diff)
downloadayatana-indicator-datetime-36c6842f3eb704a72b5931152eb71d399d5f4cb1.tar.gz
ayatana-indicator-datetime-36c6842f3eb704a72b5931152eb71d399d5f4cb1.tar.bz2
ayatana-indicator-datetime-36c6842f3eb704a72b5931152eb71d399d5f4cb1.zip
g_object_unref doesn't require G_OBJECT()
-rw-r--r--src/datetime-service.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/datetime-service.c b/src/datetime-service.c
index cc263f6..a9e61d8 100644
--- a/src/datetime-service.c
+++ b/src/datetime-service.c
@@ -165,7 +165,7 @@ update_location_menu_items (void)
DbusmenuMenuitem * item = DBUSMENU_MENUITEM(location_menu_items->data);
location_menu_items = g_slist_remove(location_menu_items, item);
dbusmenu_menuitem_child_delete(root, DBUSMENU_MENUITEM(item));
- g_object_unref(G_OBJECT(item));
+ g_object_unref(item);
}
/***
@@ -1079,13 +1079,12 @@ main (int argc, char ** argv)
mainloop = g_main_loop_new(NULL, FALSE);
g_main_loop_run(mainloop);
- g_object_unref(G_OBJECT(conf));
- g_object_unref(G_OBJECT(dbus));
- g_object_unref(G_OBJECT(service));
- g_object_unref(G_OBJECT(server));
- g_object_unref(G_OBJECT(root));
- g_object_unref(G_OBJECT(planner));
-
+ g_object_unref (conf);
+ g_object_unref (dbus);
+ g_object_unref (service);
+ g_object_unref (server);
+ g_object_unref (root);
+ g_object_unref (planner);
g_object_unref (geo_location);
g_object_unref (tz_file);