mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Memory leak fixes
This commit is contained in:
@@ -376,7 +376,7 @@
|
||||
__strong ASEditableTextNode *strongSelf = weakSelf;
|
||||
if (strongSelf != nil) {
|
||||
if ([strongSelf->_delegate respondsToSelector:@selector(editableTextNodeShouldCopy:)]) {
|
||||
return [strongSelf->_delegate editableTextNodeShouldCopy:self];
|
||||
return [strongSelf->_delegate editableTextNodeShouldCopy:strongSelf];
|
||||
}
|
||||
}
|
||||
return true;
|
||||
@@ -385,7 +385,7 @@
|
||||
__strong ASEditableTextNode *strongSelf = weakSelf;
|
||||
if (strongSelf != nil) {
|
||||
if ([strongSelf->_delegate respondsToSelector:@selector(editableTextNodeShouldPaste:)]) {
|
||||
return [strongSelf->_delegate editableTextNodeShouldPaste:self];
|
||||
return [strongSelf->_delegate editableTextNodeShouldPaste:strongSelf];
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user