Prevent MXKAlert from being retained in action handler
MODIFY
MatrixKit/Views/MXKAlert.m
MatrixKit/Views/MXKAlert.m
{
index = [(UIAlertController *)_alert actions].count;
+ __weak typeof(self) weakSelf = self;
UIAlertAction* action = [UIAlertAction actionWithTitle:title
style:(UIAlertActionStyle)style
handler:^(UIAlertAction * action) {
if (handler)
{
- handler(self);
+ handler(weakSelf);
}
}];

Prevent MXKAlert from being retained in action handler