How about adding this code in dealloc()?
I think it is more reasonable to add it there.