Mixer: Don't forget to remove timeouts in destructors!
This commit is contained in:
parent
65d4293665
commit
b7079c6147
|
@ -60,7 +60,7 @@ Controller_Module::Controller_Module ( int W, int H, const char *L )
|
||||||
|
|
||||||
Controller_Module::~Controller_Module ( )
|
Controller_Module::~Controller_Module ( )
|
||||||
{
|
{
|
||||||
|
Fl::remove_timeout( update_cb, this );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -65,6 +65,8 @@ Meter_Indicator_Module::~Meter_Indicator_Module ( )
|
||||||
{
|
{
|
||||||
if ( control_value )
|
if ( control_value )
|
||||||
delete[] control_value;
|
delete[] control_value;
|
||||||
|
|
||||||
|
Fl::remove_timeout( update_cb, this );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -63,6 +63,8 @@ Meter_Module::~Meter_Module ( )
|
||||||
{
|
{
|
||||||
if ( control_value )
|
if ( control_value )
|
||||||
delete[] control_value;
|
delete[] control_value;
|
||||||
|
|
||||||
|
Fl::remove_timeout( update_cb, this );
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -296,6 +296,7 @@ Mixer_Strip::init ( )
|
||||||
o->color( FL_LIGHT1 );
|
o->color( FL_LIGHT1 );
|
||||||
o->selection_color( FL_RED );
|
o->selection_color( FL_RED );
|
||||||
o->labelsize(10);
|
o->labelsize(10);
|
||||||
|
o->when( FL_WHEN_RELEASE );
|
||||||
o->callback( ((Fl_Callback*)cb_handle), this );
|
o->callback( ((Fl_Callback*)cb_handle), this );
|
||||||
} // Fl_Button* o
|
} // Fl_Button* o
|
||||||
o->end();
|
o->end();
|
||||||
|
|
Loading…
Reference in New Issue