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

Commit 0955ae43 authored by Luca Zuccarini's avatar Luca Zuccarini
Browse files

Prevent leak of transition leashes in RemoteAnimationRunnerCompat.

Bug: 390422470
Flag: EXEMPT bugfix
Test: manual + winscope
Change-Id: Ibbfcbb87e5f8b0007d26a4151ac6de8ef2c5856a
parent 09558664
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -197,6 +197,10 @@ public abstract class RemoteAnimationRunnerCompat extends IRemoteAnimationRunner
                    // Release surface references now. This is apparently to free GPU memory
                    // before GC would.
                    info.releaseAllSurfaces();
                    // Make sure that the transition leashes created are not leaked.
                    for (SurfaceControl leash : leashMap.values()) {
                        finishTransaction.reparent(leash, null);
                    }
                    // Don't release here since launcher might still be using them. Instead
                    // let launcher release them (eg. via RemoteAnimationTargets)
                    leashMap.clear();