MIxer/Chain: Fix race condition.

This commit is contained in:
Jonathan Moore Liles 2013-09-18 21:56:31 -07:00
parent 4d20ed0f7b
commit 47f15d9937
1 changed files with 4 additions and 1 deletions

View File

@ -86,7 +86,8 @@ extern char *instance_name;
Chain::Chain ( ) : Fl_Group( 0, 0, 100, 100, "") Chain::Chain ( ) : Fl_Group( 0, 0, 100, 100, "")
{ {
_deleting = false; /* not really deleting here, but reusing this variable */
_deleting = true;
int X = 0; int X = 0;
int Y = 0; int Y = 0;
@ -161,6 +162,8 @@ Chain::Chain ( ) : Fl_Group( 0, 0, 100, 100, "")
end(); end();
log_create(); log_create();
_deleting = false;
} }
Chain::~Chain ( ) Chain::~Chain ( )