Delete faders when destroying CAudioMixerBoard.
This avoids a harmless memory leak.
This commit is contained in:
parent
b7ef20b222
commit
075933ef4c
2 changed files with 10 additions and 0 deletions
|
@ -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()
|
||||
{
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue