mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-03 00:31:36 +08:00
GPS Sim: Fix destructor
This commit is contained in:
@@ -195,6 +195,8 @@ GPSSIM::GPSSIM(const char *uart_path, bool fake_gps, bool enable_sat_info) :
|
|||||||
|
|
||||||
GPSSIM::~GPSSIM()
|
GPSSIM::~GPSSIM()
|
||||||
{
|
{
|
||||||
|
delete _Sat_Info;
|
||||||
|
|
||||||
/* tell the task we want it to go away */
|
/* tell the task we want it to go away */
|
||||||
_task_should_exit = true;
|
_task_should_exit = true;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user