Skip to content

Commit

Permalink
Fix dealloc on bg (#1410)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
wsdwsd0829 authored and Adlai-Holler committed Mar 29, 2019
1 parent 69f42db commit 039b6f0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
8 changes: 0 additions & 8 deletions Source/ASTextNode.mm
Original file line number Diff line number Diff line change
Expand Up @@ -261,14 +261,6 @@ - (instancetype)init
- (void)dealloc
{
CGColorRelease(_shadowColor);

// TODO: This may not be necessary post-iOS-9 when most UIKit assign APIs
// were changed to weak.
if (_longPressGestureRecognizer) {
_longPressGestureRecognizer.delegate = nil;
[_longPressGestureRecognizer removeTarget:nil action:NULL];
[self.view removeGestureRecognizer:_longPressGestureRecognizer];
}
}

#pragma mark - Description
Expand Down
6 changes: 0 additions & 6 deletions Source/ASTextNode2.mm
Original file line number Diff line number Diff line change
Expand Up @@ -227,12 +227,6 @@ - (instancetype)init
- (void)dealloc
{
CGColorRelease(_shadowColor);

if (_longPressGestureRecognizer) {
_longPressGestureRecognizer.delegate = nil;
[_longPressGestureRecognizer removeTarget:nil action:NULL];
[self.view removeGestureRecognizer:_longPressGestureRecognizer];
}
}

#pragma mark - Description
Expand Down

0 comments on commit 039b6f0

Please sign in to comment.