Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 60219c13 authored by Phil Weaver's avatar Phil Weaver
Browse files

Close memory leak in a11y gesture dispatch

Bug: 142785934
Test: atest AccessibilityGestureDispatchTest
Change-Id: I926ac49ec798eda7070f6e9b67b8eec1c6ea537a
parent 571854ea
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -822,6 +822,7 @@ public abstract class AccessibilityService extends Service {
        GestureResultCallbackInfo callbackInfo;
        synchronized (mLock) {
            callbackInfo = mGestureStatusCallbackInfos.get(sequence);
            mGestureStatusCallbackInfos.remove(sequence);
        }
        final GestureResultCallbackInfo finalCallbackInfo = callbackInfo;
        if ((callbackInfo != null) && (callbackInfo.gestureDescription != null)