summaryrefslogtreecommitdiffstats
path: root/location
diff options
context:
space:
mode:
authordestradaa <destradaa@google.com>2014-10-14 16:52:43 -0700
committerdestradaa <destradaa@google.com>2014-10-31 13:59:17 -0700
commitdf1198401101805a335535dd08231cbb0e2af500 (patch)
treeb63166f1cb576558596055043cd0cffc6d1d303e /location
parentb9eabc5c2b54145772cbec1c6cec90360925e174 (diff)
downloadframeworks_base-df1198401101805a335535dd08231cbb0e2af500.zip
frameworks_base-df1198401101805a335535dd08231cbb0e2af500.tar.gz
frameworks_base-df1198401101805a335535dd08231cbb0e2af500.tar.bz2
Fix reference leak in GPS measurement JNI layer.
b/16727892 b/17075171 Change-Id: I5f41c6db114078b927e56a7614fa7c09a288e2b2
Diffstat (limited to 'location')
-rw-r--r--location/java/android/location/GpsClock.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/location/java/android/location/GpsClock.java b/location/java/android/location/GpsClock.java
index 963b604..610d268 100644
--- a/location/java/android/location/GpsClock.java
+++ b/location/java/android/location/GpsClock.java
@@ -492,6 +492,7 @@ public class GpsClock implements Parcelable {
setType(TYPE_UNKNOWN);
setTimeInNs(Long.MIN_VALUE);
resetTimeUncertaintyInNs();
+ resetFullBiasInNs();
resetBiasInNs();
resetBiasUncertaintyInNs();
resetDriftInNsPerSec();