Release _ongoingTouches when FlutterViewController dealloc (flutter/engine#11049)

This commit is contained in:
Qxyat
2019-08-27 01:49:54 +08:00
committed by Chris Bracken
parent 6372afa9af
commit 3976be5c8b

View File

@@ -523,6 +523,7 @@ typedef enum UIAccessibilityContrast : NSInteger {
- (void)dealloc {
[_engine.get() notifyViewControllerDeallocated];
[[NSNotificationCenter defaultCenter] removeObserver:self];
[_ongoingTouches release];
[super dealloc];
}