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

Commit 10b36622 authored by Wei Sheng Shih's avatar Wei Sheng Shih Committed by Android (Google) Code Review
Browse files

Merge "Release the child layer on TaskSnapshot" into sc-v2-dev

parents 64266375 cbf8798b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -364,6 +364,7 @@ public class TaskSnapshotWindow {

        // In case window manager leaks us, make sure we don't retain the snapshot.
        mSnapshot = null;
        mSurfaceControl.release();
    }

    private void drawSizeMatchSnapshot() {
@@ -431,6 +432,7 @@ public class TaskSnapshotWindow {
            mTransaction.setBuffer(mSurfaceControl, background);
        }
        mTransaction.apply();
        childSurfaceControl.release();
    }

    /**