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

Commit cc947fdc authored by Craig Mautner's avatar Craig Mautner Committed by Android (Google) Code Review
Browse files

Merge "Add window leak check and possible recovery." into jb-mr2-dev

parents 67df64b3 a99764e5
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -997,6 +997,9 @@ final class WindowState implements WindowManagerPolicy.WindowState {
                    Slog.i(TAG, "WIN DEATH: " + win);
                    if (win != null) {
                        mService.removeWindowLocked(mSession, win);
                    } else if (WindowState.this.mHasSurface) {
                        Slog.e(TAG, "!!! LEAK !!! Window removed but surface still valid.");
                        mService.removeWindowLocked(mSession, WindowState.this);
                    }
                }
            } catch (IllegalArgumentException ex) {