GPS Sim: Fix destructor

This commit is contained in:
Lorenz Meier 2017-01-03 09:29:04 +01:00 committed by Beat Küng
parent 9cfd46b87c
commit 750ab87303
1 changed files with 2 additions and 0 deletions

View File

@ -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;