1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 10:05:46 -05:00

FT8 support: plan destructor

This commit is contained in:
f4exb 2023-01-25 14:37:53 +01:00
parent aaa244974b
commit c1c64b23e4
2 changed files with 10 additions and 0 deletions

View File

@ -33,6 +33,15 @@ QMutex FT8Plans::m_globalPlanMutex;
FT8Plans::FT8Plans() FT8Plans::FT8Plans()
{} {}
FT8Plans::~FT8Plans()
{
qDebug("FT8::FT8Plans::~FT8Plans: %lu plans to delete", m_plans.size());
for (auto& plan : m_plans) {
delete plan;
}
}
FT8Plans *FT8Plans::GetInstance() FT8Plans *FT8Plans::GetInstance()
{ {
if (!m_instance) { if (!m_instance) {

View File

@ -41,6 +41,7 @@ public:
protected: protected:
FT8Plans(); FT8Plans();
~FT8Plans();
static FT8Plans *m_instance; static FT8Plans *m_instance;
private: private: