fixed more leaks

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1221 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-06-30 12:38:35 +00:00
parent fcfb02fbaa
commit 7d8a15f2db
7 changed files with 40 additions and 16 deletions

View File

@@ -69,6 +69,7 @@ QVariant decode( const QString & _b64, QVariant::Type _force_type )
in.setVersion( QDataStream::Qt_3_3 );
in >> ret;
}
delete[] dst;
return( ret );
}

View File

@@ -56,6 +56,13 @@ effect::effect( const plugin::descriptor * _desc,
effect::~effect()
{
for( int i = 0; i < 2; ++i )
{
if( m_srcState[i] != NULL )
{
src_delete( m_srcState[i] );
}
}
}

View File

@@ -131,9 +131,11 @@ void engine::destroy( void )
presetPreviewPlayHandle::cleanup();
instrumentTrackView::cleanupWindowPool();
delete s_song;
s_song->clearAllTracks();
delete s_bbTrackContainer;
s_bbTrackContainer = NULL;
delete s_dummyTC;
s_dummyTC = NULL;
delete s_mixer;
s_mixer = NULL;
@@ -147,6 +149,9 @@ void engine::destroy( void )
s_projectJournal = NULL;
s_mainWindow = NULL;
delete s_song;
s_song = NULL;
delete configManager::inst();
}

View File

@@ -741,8 +741,8 @@ bool ladspaManager::isInteger( const ladspa_key_t & _plugin,
QString ladspaManager::getPortName( const ladspa_key_t & _plugin,
Uint32 _port )
{
if( m_ladspaManagerMap.contains( _plugin )
&& _port < getPortCount( _plugin ) )
if( m_ladspaManagerMap.contains( _plugin ) &&
_port < getPortCount( _plugin ) )
{
LADSPA_Descriptor_Function descriptorFunction =
m_ladspaManagerMap[_plugin]->descriptorFunction;