// Destroy network manager objects func nmDestroyManager(m *nm.Manager) { if m == nil { logger.Error("Manager to destroy is nil") return } nm.DestroyManager(m) }
func destroyDbusObjects() { // destroy global dbus objects manually when stopping service is // required for that there are multiple signal connected with // theme which need to be removed login1.DestroyManager(loginManager) nm.DestroyManager(nmManager) nm.DestroySettings(nmSettings) }