OSDN Git Service

ContextHub: Avoid reference leaks
authorAndrew Rossignol <aarossig@google.com>
Tue, 9 Aug 2016 17:54:38 +0000 (10:54 -0700)
committerAndrew Rossignol <aarossig@google.com>
Tue, 9 Aug 2016 18:47:09 +0000 (11:47 -0700)
commit52dda598963cefc82cfc5e55342ff631a07fd6d4
treee97df002875209f91874112734e2a4eae844ccda
parent4a5d23596afe03d7ae3e7501cd32afa5d7eca8a2
ContextHub: Avoid reference leaks

The ContextHub HAL was leaking references in passOnOsResponse. An
example of this is when a sensor hub reset occurs. If many of these
resets happen, the local reference pool is exhausted and a crash
in the HAL occurs.

Bug: 30706325
Change-Id: Ica5328137a7033f512d7fb1ccf6fa138eab55091
core/jni/android_hardware_location_ContextHubService.cpp