From 6b523cbd46033a8b16de71a4b53e55ca5ffe0a04 Mon Sep 17 00:00:00 2001 From: Michael du Breuil Date: Fri, 7 Apr 2017 16:38:58 -0700 Subject: [PATCH] AP_GPS: Fix a memory leak in QURT GPS Fixes part of #6000 --- libraries/AP_GPS/AP_GPS_QURT.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libraries/AP_GPS/AP_GPS_QURT.cpp b/libraries/AP_GPS/AP_GPS_QURT.cpp index 662043de32..4f08018568 100644 --- a/libraries/AP_GPS/AP_GPS_QURT.cpp +++ b/libraries/AP_GPS/AP_GPS_QURT.cpp @@ -72,10 +72,8 @@ AP_GPS_QURT::read(void) state.status = AP_GPS::GPS_OK_FIX_3D; } else if (data.nav_type & NAV_TYPE_2SV_KF_SOLUTION) { state.status = AP_GPS::GPS_OK_FIX_2D; - } else if (data.nav_type & NAV_TYPE_1SV_KF_SOLUTION) { - state.status = AP_GPS::NO_FIX; } else { - state.status = AP_GPS::NO_GPS; + state.status = AP_GPS::NO_FIX; } state.num_sats = data.sv_in_fix;