Skip to content

Commit

Permalink
Merge pull request #2133 from dforsi/fix/memleaks
Browse files Browse the repository at this point in the history
Fix memleaks
  • Loading branch information
f4exb authored Jun 3, 2024
2 parents 59fa653 + cf0e129 commit 523be28
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions plugins/channelrx/channelpower/channelpowersink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ ChannelPowerSink::ChannelPowerSink(ChannelPower *channelPower) :

ChannelPowerSink::~ChannelPowerSink()
{
delete m_lowpassFFT;
}

void ChannelPowerSink::feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end)
Expand Down
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/feature/skymap/skymapgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ SkyMapGUI::~SkyMapGUI()
m_webServer->close();
delete m_webServer;
}
delete m_webInterface;
delete ui;
}

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
1 change: 1 addition & 0 deletions sdrgui/gui/tvscreenanalog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ TVScreenAnalog::TVScreenAnalog(QWidget *parent) :

TVScreenAnalog::~TVScreenAnalog()
{
cleanup();
delete m_backBuffer;
delete m_frontBuffer;
}
Expand Down

0 comments on commit 523be28

Please sign in to comment.