Fix memory management for static block variables in UIAlertView+MKBlockAdditions
If objects referenced in the blocks are deallocated, in the next invocation of alertViewWithTitle:message:cancelButtonTitle:otherButtonTitles:onDismiss:onCancel: block arguments still reference to deallocated instances causing crash. Fix the case if more than one UIAlertView is shown using block-based category method. Add thread safety.
I think that should probably be:
[alertView.cancelBlock release];
alertView.cancelBlock = nil;
[alertView.dismissBlock release];
alertView.dismissBlock = nil;
Yeah so it looks like pull request #7 made those into dynamic properties. I'm not sure if your change is still necessary but it should probably become something more like what I showed above.
Okay I rebased your commit and fixed that: https://github.com/drewish/UIKitCategoryAdditions/commit/1994aa5e5c3da51313c419296b2127ea5d7515f3