Memory leak fixes

This commit is contained in:
Ali
2023-09-22 15:02:40 +04:00
parent 29057102ed
commit 709bcd548c
5 changed files with 29 additions and 20 deletions

View File

@@ -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;