Skip to content

Commit

Permalink
Fix memleaks of QNetworkAccessManager()
Browse files Browse the repository at this point in the history
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
  • Loading branch information
dforsi committed May 28, 2024
1 parent 302f993 commit cf0e129
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions plugins/channelrx/demodchirpchat/chirpchatdemod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ ChirpChatDemod::ChirpChatDemod(DeviceAPI* deviceAPI) :

ChirpChatDemod::~ChirpChatDemod()
{
delete m_networkManager;
m_deviceAPI->removeChannelSinkAPI(this);
m_deviceAPI->removeChannelSink(this);
stop();
Expand Down
1 change: 1 addition & 0 deletions plugins/channelrx/radioastronomy/radioastronomygui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2297,6 +2297,7 @@ void RadioAstronomyGUI::customContextMenuRequested(QPoint pos)

RadioAstronomyGUI::~RadioAstronomyGUI()
{
delete m_networkManager;
delete ui;
delete m_calHot;
delete m_calCold;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ SatelliteSelectionDialog::SatelliteSelectionDialog(SatelliteTrackerSettings *set

SatelliteSelectionDialog::~SatelliteSelectionDialog()
{
delete m_networkManager;
delete ui;
}

Expand Down
1 change: 1 addition & 0 deletions plugins/feature/satellitetracker/satellitetracker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ SatelliteTracker::SatelliteTracker(WebAPIAdapterInterface *webAPIAdapterInterfac

SatelliteTracker::~SatelliteTracker()
{
delete m_networkManager;
stop();
qDeleteAll(m_satState);
}
Expand Down
1 change: 1 addition & 0 deletions plugins/samplesink/audiooutput/audiooutput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ AudioOutput::AudioOutput(DeviceAPI *deviceAPI) :

AudioOutput::~AudioOutput()
{
delete m_networkManager;
stop();
}

Expand Down
1 change: 1 addition & 0 deletions plugins/samplesink/fileoutput/fileoutput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ FileOutput::FileOutput(DeviceAPI *deviceAPI) :

FileOutput::~FileOutput()
{
delete m_networkManager;
stop();
}

Expand Down

0 comments on commit cf0e129

Please sign in to comment.