summaryrefslogtreecommitdiffstats
path: root/core/java/android/nfc/NfcAdapter.java
diff options
context:
space:
mode:
authorJohannes Carlsson <johannes.carlsson.x@sonyericsson.com>2010-10-27 10:08:10 +0200
committerDianne Hackborn <hackbod@google.com>2011-01-05 18:59:07 -0800
commitb5a8654dea9ea8443b41f8ff3668ae4074e13a07 (patch)
treecb4073d122303f155263187e68bc3d281694460c /core/java/android/nfc/NfcAdapter.java
parentc91f9fe542fd1ca9d6da432faeba60d35c4d5c49 (diff)
downloadframeworks_base-b5a8654dea9ea8443b41f8ff3668ae4074e13a07.zip
frameworks_base-b5a8654dea9ea8443b41f8ff3668ae4074e13a07.tar.gz
frameworks_base-b5a8654dea9ea8443b41f8ff3668ae4074e13a07.tar.bz2
Clear reference to the IIntentReceiver in order to avoid memory leak
When using sendOrderedBroadcast(..) with a BroadcastReceiver the BroadcastReceiver instance was not released. The reason for this was that the resultTo field in the BroadcastRecord kept a reference until it was pushed out of the mBroadcastHistory. This reference in turn kept a reference to the process side IIntentReceiver (implemented in ReceiverDispatcher$InnerReceiver). This in turn had a strong reference (through mStrongRef) to the Context. In order to keep the debug output the resultTo is also kept as a String in the new resultToString variable. Change-Id: I4382a22a541c27b3694fb2b78a04ee820b235f8f
Diffstat (limited to 'core/java/android/nfc/NfcAdapter.java')
0 files changed, 0 insertions, 0 deletions