1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-10 18:43:28 -05:00

Fix memleaks of QNetworkAccessManager()

Frees memory allocated
in AudioOutputPlugin::createSampleSinkPluginInstance(QString const&, DeviceAPI*) /home//sdrangel/plugins/samplesink/audiooutput/audiooutputplugin.cpp:136
in ChirpChatDemod::ChirpChatDemod(DeviceAPI*) /home/sdrangel/plugins/channelrx/demodchirpchat/chirpchatdemod.cpp:84
in FileOutput::FileOutput(DeviceAPI*) /home/sdrangel/plugins/samplesink/fileoutput/fileoutput.cpp:54
in RadioAstronomyGUI::RadioAstronomyGUI(PluginAPI*, DeviceUISet*, BasebandSampleSink*, QWidget*) /home/sdrangel/plugins/channelrx/radioastronomy/radioastronomygui.cpp:2061
in SatelliteSelectionDialog::SatelliteSelectionDialog(SatelliteTrackerSettings*, QHash<QString, SatNogsSatellite*> const&, QWidget*) /home/sdrangel/plugins/feature/satellitetracker/satelliteselectiondialog.cpp:42:24
in SatelliteTracker::SatelliteTracker(WebAPIAdapterInterface*) /home/sdrangel/plugins/feature/satellitetracker/satellitetracker.cpp:61:24
This commit is contained in:
Daniele Forsi 2024-05-26 22:02:18 +02:00
parent 302f99382a
commit cf0e129165
6 changed files with 6 additions and 0 deletions

View File

@ -95,6 +95,7 @@ ChirpChatDemod::ChirpChatDemod(DeviceAPI* deviceAPI) :
ChirpChatDemod::~ChirpChatDemod()
{
delete m_networkManager;
m_deviceAPI->removeChannelSinkAPI(this);
m_deviceAPI->removeChannelSink(this);
stop();

View File

@ -2297,6 +2297,7 @@ void RadioAstronomyGUI::customContextMenuRequested(QPoint pos)
RadioAstronomyGUI::~RadioAstronomyGUI()
{
delete m_networkManager;
delete ui;
delete m_calHot;
delete m_calCold;

View File

@ -71,6 +71,7 @@ SatelliteSelectionDialog::SatelliteSelectionDialog(SatelliteTrackerSettings *set
SatelliteSelectionDialog::~SatelliteSelectionDialog()
{
delete m_networkManager;
delete ui;
}

View File

@ -73,6 +73,7 @@ SatelliteTracker::SatelliteTracker(WebAPIAdapterInterface *webAPIAdapterInterfac
SatelliteTracker::~SatelliteTracker()
{
delete m_networkManager;
stop();
qDeleteAll(m_satState);
}

View File

@ -57,6 +57,7 @@ AudioOutput::AudioOutput(DeviceAPI *deviceAPI) :
AudioOutput::~AudioOutput()
{
delete m_networkManager;
stop();
}

View File

@ -56,6 +56,7 @@ FileOutput::FileOutput(DeviceAPI *deviceAPI) :
FileOutput::~FileOutput()
{
delete m_networkManager;
stop();
}