summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorAdrian Roos <roosa@google.com>2015-03-05 14:41:04 +0100
committerAdrian Roos <roosa@google.com>2015-03-05 14:41:04 +0100
commitdfdbad309f610c242931cd588a9c1ea1112b8bd0 (patch)
treeb7e96a15922fda16546de75c7766dd10e4066798 /services
parentf855b0d2d0c0c157d657668fcb98097e2aca097e (diff)
downloadframeworks_base-dfdbad309f610c242931cd588a9c1ea1112b8bd0.zip
frameworks_base-dfdbad309f610c242931cd588a9c1ea1112b8bd0.tar.gz
frameworks_base-dfdbad309f610c242931cd588a9c1ea1112b8bd0.tar.bz2
Prevent receiver leak in TrustAgentWrapper
Bug: 19601687 Change-Id: Idfe5429926e1c849dc2d908b4877d8410335391c
Diffstat (limited to 'services')
-rw-r--r--services/core/java/com/android/server/trust/TrustAgentWrapper.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/trust/TrustAgentWrapper.java b/services/core/java/com/android/server/trust/TrustAgentWrapper.java
index 57b204d..583cc6b 100644
--- a/services/core/java/com/android/server/trust/TrustAgentWrapper.java
+++ b/services/core/java/com/android/server/trust/TrustAgentWrapper.java
@@ -395,6 +395,7 @@ public class TrustAgentWrapper {
}
public void destroy() {
+ mContext.unregisterReceiver(mBroadcastReceiver);
mHandler.removeMessages(MSG_RESTART_TIMEOUT);
if (!mBound) {