diff --git a/sdrbase/util/airlines.cpp b/sdrbase/util/airlines.cpp index 75fe7fc16..1a3f3dd2f 100644 --- a/sdrbase/util/airlines.cpp +++ b/sdrbase/util/airlines.cpp @@ -5560,3 +5560,8 @@ Airline::Init::Init() s += 4; } } + +Airline::Init::~Init() +{ + qDeleteAll(m_icaoHash); +} diff --git a/sdrbase/util/airlines.h b/sdrbase/util/airlines.h index 7eed494f8..34ac5890b 100644 --- a/sdrbase/util/airlines.h +++ b/sdrbase/util/airlines.h @@ -55,6 +55,7 @@ private: friend struct Init; struct Init { Init(); + ~Init(); static const char *m_airlines[]; }; static Init m_init;