From 750ab873036d1790c2f66ea4b83020da92222c27 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Tue, 3 Jan 2017 09:29:04 +0100 Subject: [PATCH] GPS Sim: Fix destructor --- src/platforms/posix/drivers/gpssim/gpssim.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/platforms/posix/drivers/gpssim/gpssim.cpp b/src/platforms/posix/drivers/gpssim/gpssim.cpp index ff9f5e43ed..034ced532f 100644 --- a/src/platforms/posix/drivers/gpssim/gpssim.cpp +++ b/src/platforms/posix/drivers/gpssim/gpssim.cpp @@ -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;