proper cleanup of fxMixer and it's view at exit

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@797 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-03-16 13:10:32 +00:00
parent 8def525164
commit c683dd150c
3 changed files with 25 additions and 0 deletions

View File

@@ -117,6 +117,12 @@ void engine::destroy( void )
s_pianoRoll = NULL;
delete s_automationEditor;
s_automationEditor = NULL;
delete s_fxMixerView;
s_fxMixerView = NULL;
delete s_fxMixer;
s_fxMixer = NULL;
delete s_ladspaManager;
presetPreviewPlayHandle::cleanUp();

View File

@@ -60,6 +60,10 @@ struct fxChannel
engine::getMixer()->clearAudioBuffer( m_buffer,
engine::getMixer()->framesPerPeriod() );
}
~fxChannel()
{
delete[] m_buffer;
}
effectChain m_fxChain;
bool m_used;
@@ -71,6 +75,7 @@ struct fxChannel
floatModel m_volumeModel;
QString m_name;
QMutex m_lock;
} ;
@@ -92,6 +97,10 @@ fxMixer::fxMixer() :
fxMixer::~fxMixer()
{
for( int i = 0; i < NUM_FX_CHANNELS+1; ++i )
{
delete m_fxChannels[i];
}
}