void LightManager::LightDestroyed(const Light* pLight) { ASSERT_PREDICATE_RETURN(pLight); // shutdown condition has m_Octree = 0 if (m_Octree) { m_Octree->RemoveOctreeNode(GetOctreeNode(pLight)); } DestroyOctreeNode(const_cast<Light*>(pLight)); DisconnectSignals(pLight); }
void Connection::Close() { if ( tp_connection_.isNull() ) return; // nothing to close CloseSessions(); DeleteFriendRequests(); DeleteContacts(); DisconnectSignals(); Tp::PendingOperation* op = tp_connection_->requestDisconnect(); tp_connection_.reset(); }