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

@@ -325,7 +325,7 @@ void ladspaEffect::pluginInstantiation( void )
}
else
{
p->buffer = new LADSPA_Data;
p->buffer = new LADSPA_Data[1];
if( manager->isPortInput( m_key, port ) )
{
@@ -510,8 +510,8 @@ void ladspaEffect::pluginDestruction( void )
manager->cleanup( m_key, m_handles[proc] );
for( int port = 0; port < m_portCount; port++ )
{
free( m_ports[proc][port]->buffer );
free( m_ports[proc][port] );
delete[] m_ports[proc][port]->buffer;
delete m_ports[proc][port];
}
m_ports[proc].clear();
}