Delete faders when destroying CAudioMixerBoard.

This avoids a harmless memory leak.
This commit is contained in:
Adam Sampson 2020-06-21 13:55:08 +01:00
parent b7ef20b222
commit 075933ef4c
2 changed files with 10 additions and 0 deletions

View file

@ -704,6 +704,14 @@ CAudioMixerBoard::CAudioMixerBoard ( QWidget* parent, Qt::WindowFlags ) :
connectFaderSignalsToMixerBoardSlots<MAX_NUM_CHANNELS>();
}
CAudioMixerBoard::~CAudioMixerBoard()
{
for ( int i = 0; i < MAX_NUM_CHANNELS; i++ )
{
delete vecpChanFader[i];
}
}
template<unsigned int slotId>
inline void CAudioMixerBoard::connectFaderSignalsToMixerBoardSlots()
{

View file

@ -169,6 +169,8 @@ public:
CAudioMixerBoard ( QWidget* parent = nullptr,
Qt::WindowFlags f = nullptr );
virtual ~CAudioMixerBoard();
void HideAll();
void ApplyNewConClientList ( CVector<CChannelInfo>& vecChanInfo );
void SetServerName ( const QString& strNewServerName );