/** * Stops BlueZ link. Link may be restarted again afterwards. * * @return success status */ static int finalize() { DEBUG("Stopping BlueZ link..."); disconnect_all_channels(); disconnect_all_devices(); destroy_health_applications(); disconnect_all_adapters(); disconnect_manager_signals(); destroy_manager_proxy(); g_idle_add(cleanup, NULL); return NETWORK_ERROR_NONE; }
static void gs_monitor_finalize (GObject *object) { GSMonitor *monitor; g_return_if_fail (object != NULL); g_return_if_fail (GS_IS_MONITOR (object)); monitor = GS_MONITOR (object); g_return_if_fail (monitor->priv != NULL); disconnect_conf_signals (monitor); disconnect_listener_signals (monitor); disconnect_manager_signals (monitor); g_object_unref (monitor->priv->conf); g_object_unref (monitor->priv->listener); g_object_unref (monitor->priv->listener_x11); g_object_unref (monitor->priv->manager); G_OBJECT_CLASS (gs_monitor_parent_class)->finalize (object); }