do not crash when removing TCOs

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@971 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-05-13 18:14:33 +00:00
parent d9914d37a0
commit 076a6b14c7
2 changed files with 4 additions and 1 deletions

View File

@@ -1,5 +1,8 @@
2008-05-13 Tobias Doerffel <tobydox/at/users/dot/sourceforge/dot/net>
* src/core/track.cpp:
do not crash when removing TCOs
* plugins/ladspa_effect/ladspa_effect.cpp:
use new resampling-methods in case we're processing plugins which are
known not to work at higher samplerates

View File

@@ -268,7 +268,7 @@ bool trackContentObjectView::close( void )
void trackContentObjectView::remove( void )
{
// delete ourself
m_trackView->getTrackContentWidget()->removeTCOView( this );
close();
m_tco->deleteLater();
}