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

Commit c3e5599c authored by destradaa's avatar destradaa Committed by Android (Google) Code Review
Browse files

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

parents b1d52e1d df119840
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;
}