iiicp / KeyboardforChat

仿微信聊天键盘,无污染,无任何第三方,使用简单
506 stars 118 forks source link

用mleakfinder发现一个内存泄漏. #24

Open willylee007 opened 7 years ago

willylee007 commented 7 years ago

WS(weakSelf) itemView.itemViewAction = ^(MoreItemView *itemView){ if ([weakSelf.delegate respondsToSelector:@selector(morePannel:didSelectItemIndex:)]) { [weakSelf.delegate morePannel:weakSelf didSelectItemIndex:itemView.tag]; } }; //改成这样就不会泄漏了.

iiicp commented 7 years ago

thanks!