mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-25 01:18:38 -05:00
Fix memleaks
Frees memory allocated in SpectrumMeasurements::createPeakTable(int) .../sdrgui/gui/spectrummeasurements.cpp:303 in SpectrumMeasurements::createPeakTable(int) .../sdrgui/gui/spectrummeasurements.cpp:304
This commit is contained in:
parent
31ad607721
commit
b1a460fca8
@ -300,8 +300,8 @@ void SpectrumMeasurements::createPeakTable(int peaks)
|
||||
m_peakTable->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred);
|
||||
m_peakTable->setSizeAdjustPolicy(QAbstractScrollArea::AdjustToContents);
|
||||
|
||||
m_peakTable->setItemDelegateForColumn(COL_FREQUENCY, new UnitsDelegate());
|
||||
m_peakTable->setItemDelegateForColumn(COL_POWER, new UnitsDelegate());
|
||||
m_peakTable->setItemDelegateForColumn(COL_FREQUENCY, new UnitsDelegate(m_peakTable));
|
||||
m_peakTable->setItemDelegateForColumn(COL_POWER, new UnitsDelegate(m_peakTable));
|
||||
|
||||
// Cell context menu
|
||||
m_peakTable->setContextMenuPolicy(Qt::CustomContextMenu);
|
||||
|
Loading…
Reference in New Issue
Block a user