MDWamp icon indicating copy to clipboard operation
MDWamp copied to clipboard

Store delegate weakly instead of unsafe_unretained

Open elliottwilliams opened this issue 7 years ago • 0 comments

Right now, if the delegate of a MDWamp object is deallocated, the delegate property becomes a dangling pointer and will crash next time a delegate method is called.

I'm pretty certain it can just made a weak property and get the desired behavior of being set to nil when the delegate deinits.

elliottwilliams avatar Nov 06 '17 13:11 elliottwilliams