Browse Source

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

tags/non-daw-v1.1.0
Jonathan Moore Liles 15 years ago
parent
commit
b7079c6147
4 changed files with 6 additions and 1 deletions
  1. +1
    -1
      Mixer/Controller_Module.C
  2. +2
    -0
      Mixer/Meter_Indicator_Module.C
  3. +2
    -0
      Mixer/Meter_Module.C
  4. +1
    -0
      Mixer/Mixer_Strip.C

+ 1
- 1
Mixer/Controller_Module.C 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 );
}



+ 2
- 0
Mixer/Meter_Indicator_Module.C View File

@@ -65,6 +65,8 @@ Meter_Indicator_Module::~Meter_Indicator_Module ( )
{
if ( control_value )
delete[] control_value;

Fl::remove_timeout( update_cb, this );
}



+ 2
- 0
Mixer/Meter_Module.C View File

@@ -63,6 +63,8 @@ Meter_Module::~Meter_Module ( )
{
if ( control_value )
delete[] control_value;

Fl::remove_timeout( update_cb, this );
}

void


+ 1
- 0
Mixer/Mixer_Strip.C 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();


Loading…
Cancel
Save