Browse Source

Timeline: fix crash when removing a track.

tags/non-daw-v1.3.0
Jonathan Moore Liles 2 years ago
parent
commit
a0fd557baf
1 changed files with 2 additions and 12 deletions
  1. +2
    -12
      timeline/src/Track.C

+ 2
- 12
timeline/src/Track.C 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" ); */


Loading…
Cancel
Save