Also deregister control ports during track destruction.

pull/3/head
Jonathan Moore Liles 2008-05-06 20:03:08 -05:00
parent c0803df843
commit 1318ba3c3a
1 changed files with 7 additions and 0 deletions

View File

@ -254,6 +254,13 @@ Track::~Track ( )
configure_inputs( 0 );
configure_outputs( 0 );
/* controls too */
for ( int i = control_out.size(); i--; )
{
control_out.back()->shutdown();
control_out.pop_back();
}
log_destroy();
}