Mixer: Don't forget to remove timeouts in destructors!

pull/3/head
Jonathan Moore Liles 2009-12-26 02:04:17 -06:00
parent 65d4293665
commit b7079c6147
4 changed files with 6 additions and 1 deletions

View File

@ -60,7 +60,7 @@ Controller_Module::Controller_Module ( int W, int H, const char *L )
Controller_Module::~Controller_Module ( )
{
Fl::remove_timeout( update_cb, this );
}

View File

@ -65,6 +65,8 @@ Meter_Indicator_Module::~Meter_Indicator_Module ( )
{
if ( control_value )
delete[] control_value;
Fl::remove_timeout( update_cb, this );
}

View File

@ -63,6 +63,8 @@ Meter_Module::~Meter_Module ( )
{
if ( control_value )
delete[] control_value;
Fl::remove_timeout( update_cb, this );
}
void

View File

@ -296,6 +296,7 @@ Mixer_Strip::init ( )
o->color( FL_LIGHT1 );
o->selection_color( FL_RED );
o->labelsize(10);
o->when( FL_WHEN_RELEASE );
o->callback( ((Fl_Callback*)cb_handle), this );
} // Fl_Button* o
o->end();