Skip to content

Commit 039b6f0

Browse files
wsdwsd0829Adlai-Holler
authored andcommitted
Fix dealloc on bg (#1410)
* fix SIMULATE_WEB_RESPONSE not imported #449 * Fix to make rangeMode update in right time * remove uncessary assert * Fix collection cell editing bug for iOS 9 & 10 * Revert "Fix collection cell editing bug for iOS 9 & 10" This reverts commit 06e18a1. * Fix dealloc long gesture in background
1 parent 69f42db commit 039b6f0

2 files changed

Lines changed: 0 additions & 14 deletions

File tree

Source/ASTextNode.mm

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -261,14 +261,6 @@ - (instancetype)init
261261
- (void)dealloc
262262
{
263263
CGColorRelease(_shadowColor);
264-
265-
// TODO: This may not be necessary post-iOS-9 when most UIKit assign APIs
266-
// were changed to weak.
267-
if (_longPressGestureRecognizer) {
268-
_longPressGestureRecognizer.delegate = nil;
269-
[_longPressGestureRecognizer removeTarget:nil action:NULL];
270-
[self.view removeGestureRecognizer:_longPressGestureRecognizer];
271-
}
272264
}
273265

274266
#pragma mark - Description

Source/ASTextNode2.mm

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -227,12 +227,6 @@ - (instancetype)init
227227
- (void)dealloc
228228
{
229229
CGColorRelease(_shadowColor);
230-
231-
if (_longPressGestureRecognizer) {
232-
_longPressGestureRecognizer.delegate = nil;
233-
[_longPressGestureRecognizer removeTarget:nil action:NULL];
234-
[self.view removeGestureRecognizer:_longPressGestureRecognizer];
235-
}
236230
}
237231

238232
#pragma mark - Description

0 commit comments

Comments
 (0)