commit | f779ca77b75e9481ae9a7e87be35f9de3cb83a63 | [log] [tgz] |
---|---|---|
author | Dianne Hackborn <hackbod@google.com> | Thu Aug 21 13:44:19 2014 -0700 |
committer | The Android Automerger <android-build@google.com> | Thu Aug 21 14:52:05 2014 -0700 |
tree | e5f68c5aa55e6b41f2c85ee60f012c2019a915ee | |
parent | 320a3b79b91dee96676dfd45d0b5f99886f14b33 [diff] |
Work on issue #16683269: system_server still leaking memory Fix a small temporary leak of app crash dialogs, which weren't removing their timeout message. Change-Id: Iee90b5fa2be700e3006388f32145ce4b14baa2ec
diff --git a/services/core/java/com/android/server/am/AppErrorDialog.java b/services/core/java/com/android/server/am/AppErrorDialog.java index 0ba62c5..098b0b6 100644 --- a/services/core/java/com/android/server/am/AppErrorDialog.java +++ b/services/core/java/com/android/server/am/AppErrorDialog.java
@@ -94,6 +94,9 @@ } mResult.set(msg.what); + // Make sure we don't have time timeout still hanging around. + removeMessages(FORCE_QUIT); + // If this is a timeout we won't be automatically closed, so go // ahead and explicitly dismiss ourselves just in case. dismiss();