commit | 4cc80a758c3e4f044c2e53b6210df0e515536a1b | [log] [tgz] |
---|---|---|
author | Zhentao Sun <robinvane@google.com> | Wed Dec 03 14:27:26 2014 -0800 |
committer | Zhentao Sun <robinvane@google.com> | Wed Dec 03 14:34:08 2014 -0800 |
tree | 1c05ebab9ef7766c0756f4d17760dbedc4d0d17d | |
parent | b13c12f58db3026ad30849873b3b6fc664f5ce7b [diff] |
Fixed a leak in GeofenceHardwareImpl.java. Bug: 18542685. This CL includes two changes: * Fixed a leak of DeathRecipient when geofences are removed from the hardware. * Avoid creating more DeathRecipient than needed. Use the underlying binder object instead of the callback object to tell if they are the same. So if the client passes the same callback instance to GeofenceHardwareImpl, only one DeathRecipient is created. Change-Id: I7809e4bc04df4f9e3590de98a03178b276c821ea