Add dealloc in ARC, which is to set delegate nil.