mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-09 00:31:37 +08:00
Fixed delete and non-null pointer bug
This commit is contained in:
@@ -1031,6 +1031,7 @@ GPS::run()
|
||||
if ((_interface == GPSHelper::Interface::UART) && (_uart)) {
|
||||
(void) _uart->close();
|
||||
delete _uart;
|
||||
_uart = nullptr;
|
||||
|
||||
#ifdef __PX4_LINUX
|
||||
|
||||
|
||||
Reference in New Issue
Block a user