Fixed crashes due to access to deallocated memory

Fixed by zeroing delegate pointers when a delegate is being deallocated