summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Dianne Hackborn <hackbod@google.com> 2014-08-21 13:44:19 -0700
committer Dianne Hackborn <hackbod@google.com> 2014-08-21 13:44:19 -0700
commitb1a8a89697fbe714c0fa447fec2a73628555a656 (patch)
tree87268ec57f1afde9d6e90f22df828d6a20397776
parent491cb3f578a23555c807e68f8a536a892959a73f (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
-rw-r--r--services/core/java/com/android/server/am/AppErrorDialog.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/am/AppErrorDialog.java b/services/core/java/com/android/server/am/AppErrorDialog.java
index 0ba62c53dcd9..098b0b65210f 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 @@ final class AppErrorDialog extends BaseErrorDialog {
}
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();