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

Commit 207f9114 authored by Louis Chang's avatar Louis Chang
Browse files

Fix SurfaceControl leakage

Release SurfaceControl when removing display.

Bug: 111966289
Test: go/wm-smoke

Change-Id: Iff72a87a3ede3324cde9c1f96a63ec64023b8ff0
parent 87fb33d4
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2055,6 +2055,8 @@ class DisplayContent extends WindowContainer<DisplayContent.DisplayChildWindowCo
                }
            }
            mService.mAnimator.removeDisplayLocked(mDisplayId);
            mWindowingLayer.release();
            mOverlayLayer.release();
        } finally {
            mRemovingDisplay = false;
        }