summaryrefslogtreecommitdiff
path: root/libs/rs/rsg_ScriptJavaClass.cpp
diff options
context:
space:
mode:
authorJohannes Carlsson <johannes.carlsson.x@sonyericsson.com>2010-10-27 10:08:10 +0200
committerJohan Redestig <johan.redestig@sonyericsson.com>2011-01-04 09:15:09 +0100
commit58975915378fcecedbba7eb8d7a2117f9aa9e2ee (patch)
tree554692e3e4faa4ae9401dfa5e1f277dd4ecf75fd /libs/rs/rsg_ScriptJavaClass.cpp
parent69ebb984f230a523dc316bdb2c9e9c28111364fd (diff)
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 'libs/rs/rsg_ScriptJavaClass.cpp')
0 files changed, 0 insertions, 0 deletions