kopia lustrzana https://github.com/f4exb/sdrangel
Fix memleaks
Frees memory allocated in SpectrumMeasurements::createPeakTable(int) .../sdrgui/gui/spectrummeasurements.cpp:303 in SpectrumMeasurements::createPeakTable(int) .../sdrgui/gui/spectrummeasurements.cpp:304pull/2157/head
rodzic
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);
|
||||
|
|
Ładowanie…
Reference in New Issue