Browse Source

GPS Sim: Fix destructor

sbg
Lorenz Meier 8 years ago committed by Beat Küng
parent
commit
750ab87303
  1. 2
      src/platforms/posix/drivers/gpssim/gpssim.cpp

2
src/platforms/posix/drivers/gpssim/gpssim.cpp

@ -195,6 +195,8 @@ GPSSIM::GPSSIM(const char *uart_path, bool fake_gps, bool enable_sat_info) : @@ -195,6 +195,8 @@ GPSSIM::GPSSIM(const char *uart_path, bool fake_gps, bool enable_sat_info) :
GPSSIM::~GPSSIM()
{
delete _Sat_Info;
/* tell the task we want it to go away */
_task_should_exit = true;

Loading…
Cancel
Save