am db6c556d: am cc947fdc: Merge "Add window leak check and possible recovery." into jb-mr2-dev

* commit 'db6c556daea9fcf8aaeea8cacb5d8c29d0b406e7':
  Add window leak check and possible recovery.
This commit is contained in:
Craig Mautner
2013-03-06 18:46:21 +00:00
committed by Android Git Automerger

View File

@ -1003,6 +1003,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) {