[CRD iOS] Fix a crash when session is disconnected while the cursor is still flinging
The issue is that DisconnectFromHost() invalidates gestureInterpreter before ClientGesture is destroyed (which is destroyed when the host view is removed). If the user is interacting with the view after gestureInterpreter is destroyed but before the view is removed then ClientGesture will call gestureInterpreter's methods on null, which crashes the app. This CL fixes this by always checking _client and _client.gestureInterpreter before using them. Bug: 823983 Change-Id: I3889c95daf28b84bbf9aecd26f0024dcb15adbe4 Reviewed-on: https://chromium-review.googlesource.com/972631Reviewed-by:Jamie Walch <jamiewalch@chromium.org> Commit-Queue: Yuwei Huang <yuweih@chromium.org> Cr-Commit-Position: refs/heads/master@{#544830}
Showing
Please register or sign in to comment