more clean audioPort-destructor
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@492 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -58,11 +58,8 @@ audioPort::audioPort( const QString & _name ) :
|
||||
|
||||
audioPort::~audioPort()
|
||||
{
|
||||
setExtOutputEnabled( FALSE );
|
||||
engine::getMixer()->removeAudioPort( this );
|
||||
if( m_extOutputEnabled == TRUE )
|
||||
{
|
||||
engine::getMixer()->audioDev()->unregisterPort( this );
|
||||
}
|
||||
delete[] m_firstBuffer;
|
||||
delete[] m_secondBuffer;
|
||||
delete m_effects;
|
||||
|
||||
Reference in New Issue
Block a user