Skip to content

Commit 35d225e

Browse files
committed
Step_6.1
1 parent 01fd7ca commit 35d225e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/SparkFun_u-blox_GNSS_Arduino_Library.cpp

+10
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,16 @@ void SFE_UBLOX_GNSS::end(void)
214214
packetUBXNAVHPPOSLLH = NULL; // Redundant?
215215
}
216216

217+
if (packetUBXNAVPVAT != NULL)
218+
{
219+
if (packetUBXNAVPVAT->callbackData != NULL)
220+
{
221+
delete packetUBXNAVPVAT->callbackData;
222+
}
223+
delete packetUBXNAVPVAT;
224+
packetUBXNAVPVAT = NULL; // Redundant?
225+
}
226+
217227
if (packetUBXNAVCLOCK != NULL)
218228
{
219229
if (packetUBXNAVCLOCK->callbackData != NULL)

0 commit comments

Comments
 (0)