1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-21 23:55:13 -05:00

Merge pull request #2120 from dforsi/fix/sid-memleaks

Fix/sid memleaks
This commit is contained in:
Edouard Griffiths 2024-05-20 22:48:53 +02:00 committed by GitHub
commit 0714e5dba5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -284,31 +284,15 @@ SIDGUI::SIDGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISet, Feature *featur
SIDGUI::~SIDGUI()
{
QObject::disconnect(ui->chartSplitter, &QSplitter::splitterMoved, this, &SIDGUI::chartSplitterMoved);
QObject::disconnect(ui->sdoSplitter, &QSplitter::splitterMoved, this, &SIDGUI::sdoSplitterMoved);
delete m_grb;
delete m_stix;
QObject::disconnect(&m_availableFeatureHandler,
&AvailableChannelOrFeatureHandler::channelsOrFeaturesChanged,
this,
&SIDGUI::featuresChanged
);
QObject::disconnect(&m_availableChannelHandler,
&AvailableChannelOrFeatureHandler::channelsOrFeaturesChanged,
this,
&SIDGUI::channelsChanged
);
disconnectDataUpdates();
if (m_grb) {
disconnect(m_grb, &GRB::dataUpdated, this, &SIDGUI::grbDataUpdated);
}
if (m_stix) {
disconnect(m_stix, &STIX::dataUpdated, this, &SIDGUI::stixDataUpdated);
}
m_statusTimer.stop();
clearFromMap();
delete m_goesXRay;
delete m_solarDynamicsObservatory;
delete ui;
}