Add window leak check and possible recovery.

Search output for "!!! LEAK !!!"

For bug 8322020.

Change-Id: I6db572a1c7fe0e6b386ccb0dba08bc376659a75a
This commit is contained in:
Craig Mautner
2013-03-06 10:22:16 -08:00
parent 7341786b13
commit a99764e597

View File

@@ -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) {