Timeline: fix crash when removing a track.

pull/119/merge
Jonathan Moore Liles 2020-11-21 18:28:56 -08:00
parent 82f9610ca8
commit a0fd557baf
1 changed files with 2 additions and 12 deletions

View File

@ -608,11 +608,6 @@ Track::remove ( Audio_Sequence *t )
Logger log(this);
if ( t->id() == 0x2785 )
{
WARNING( "****** 0x2785 removed here *****");
}
if ( sequence() == t )
{
pack->remove( t );
@ -626,7 +621,8 @@ Track::remove ( Audio_Sequence *t )
else
takes->remove( t );
delete t;
/* doing this here creates a cycle */
/* delete t; */
Loggable::block_end();
@ -660,12 +656,6 @@ Track::sequence ( Audio_Sequence * t )
{
Logger log(this);
/* FIXME: testing */
if ( sequence() != NULL && sequence()->id() == 0x2785 )
{
DMESSAGE( "****** Here *****");
}
if ( sequence() == t )
{
/* ASSERT( false, "Attempt to set same sequence twice" ); */