Fix memleaks

Fixes leaks:
in SIDGUI::SIDGUI(PluginAPI*, FeatureUISet*, Feature*, QWidget*) plugins/feature/sid/sidgui.cpp:257
in SIDGUI::SIDGUI(PluginAPI*, FeatureUISet*, Feature*, QWidget*) plugins/feature/sid/sidgui.cpp:249
in SIDGUI::SIDGUI(PluginAPI*, FeatureUISet*, Feature*, QWidget*) plugins/feature/sid/sidgui.cpp:215
This commit is contained in:
Daniele Forsi 2024-05-19 22:30:22 +02:00
parent 08c918f194
commit 9ac66a3396
1 changed files with 3 additions and 0 deletions

View File

@ -300,15 +300,18 @@ SIDGUI::~SIDGUI()
disconnectDataUpdates();
if (m_grb) {
disconnect(m_grb, &GRB::dataUpdated, this, &SIDGUI::grbDataUpdated);
delete m_grb;
}
if (m_stix) {
disconnect(m_stix, &STIX::dataUpdated, this, &SIDGUI::stixDataUpdated);
delete m_stix;
}
m_statusTimer.stop();
clearFromMap();
delete m_goesXRay;
delete m_solarDynamicsObservatory;
delete ui;
}