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

Commit 781ad9f2 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fixed leak of app token in exiting list." into oc-dev

parents 99fbd00a 3106ae01
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -560,6 +560,9 @@ class AppWindowToken extends WindowToken implements WindowManagerService.AppFree
            // with it will be removed as soon as their animations are complete
            mAppAnimator.clearAnimation();
            mAppAnimator.animating = false;
            if (stack != null) {
                stack.mExitingAppTokens.remove(this);
            }
            removeIfPossible();
        }

+4 −0
Original line number Diff line number Diff line
@@ -1685,6 +1685,10 @@ public class WindowManagerService extends IWindowManager.Stub
                // re-factor.
                atoken.firstWindowDrawn = false;
                atoken.clearAllDrawn();
                final TaskStack stack = atoken.getStack();
                if (stack != null) {
                    stack.mExitingAppTokens.remove(atoken);
                }
            }
        }