What happens to signal/slot connections when one of their subjects is deleted? Are they automatically cleaned up? Or do I have to do something about it myself?

Thanks!