Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a084d357 authored by destradaa's avatar destradaa Committed by android-build-merger
Browse files

Merge "Fix reference leak in GPS measurement JNI layer. b/16727892 b/17075171" into lmp-mr1-dev

automerge: c3e5599c

* commit 'c3e5599c':
  Fix reference leak in GPS measurement JNI layer. b/16727892 b/17075171
parents bd94aff2 c3e5599c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -492,6 +492,7 @@ public class GpsClock implements Parcelable {
        setType(TYPE_UNKNOWN);
        setTimeInNs(Long.MIN_VALUE);
        resetTimeUncertaintyInNs();
        resetFullBiasInNs();
        resetBiasInNs();
        resetBiasUncertaintyInNs();
        resetDriftInNsPerSec();
+1 −0
Original line number Diff line number Diff line
@@ -1195,6 +1195,7 @@ static jobject translate_gps_measurement(JNIEnv* env, GpsMeasurement* measuremen
            usedInFixSetterMethod,
            (flags & GPS_MEASUREMENT_HAS_USED_IN_FIX) && measurement->used_in_fix);

    env->DeleteLocalRef(gpsMeasurementClass);
    return gpsMeasurementObject;
}