Skip to content

Commit b992500

Browse files
committed
Set pointer to null after delete
1 parent f55b2a9 commit b992500

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Firmware/RTK_Surveyor/PvtServer.ino

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,10 @@ bool pvtServerActive()
159159
pvtServer->stop();
160160

161161
if (pvtServer != nullptr)
162+
{
162163
delete pvtServer;
164+
pvtServer = nullptr;
165+
}
163166
return false;
164167
}
165168

0 commit comments

Comments
 (0)