From 103d7b5412aaea46ba34dd4c936934b816f0bcde Mon Sep 17 00:00:00 2001 From: UT2UH Date: Wed, 14 Apr 2021 21:44:36 +0300 Subject: [PATCH] TIMELS RAM deleted on 'end' --- src/SparkFun_u-blox_GNSS_Arduino_Library.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/SparkFun_u-blox_GNSS_Arduino_Library.cpp b/src/SparkFun_u-blox_GNSS_Arduino_Library.cpp index c9f2cb8..1d2bc91 100644 --- a/src/SparkFun_u-blox_GNSS_Arduino_Library.cpp +++ b/src/SparkFun_u-blox_GNSS_Arduino_Library.cpp @@ -85,6 +85,12 @@ void SFE_UBLOX_GNSS::end(void) delete[] currentGeofenceParams; currentGeofenceParams = NULL; // Redundant? } + + if (packetUBXNAVTIMELS != NULL) + { + delete[] packetUBXNAVTIMELS; + packetUBXNAVTIMELS = NULL; // Redundant? + } if (packetUBXNAVPOSECEF != NULL) {