From 47f15d9937da51d7ebc023fc70eaf9cbec474ec1 Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Wed, 18 Sep 2013 21:56:31 -0700 Subject: [PATCH] MIxer/Chain: Fix race condition. --- mixer/src/Chain.C | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mixer/src/Chain.C b/mixer/src/Chain.C index b3907ad..b899d61 100644 --- a/mixer/src/Chain.C +++ b/mixer/src/Chain.C @@ -86,7 +86,8 @@ extern char *instance_name; Chain::Chain ( ) : Fl_Group( 0, 0, 100, 100, "") { - _deleting = false; + /* not really deleting here, but reusing this variable */ + _deleting = true; int X = 0; int Y = 0; @@ -161,6 +162,8 @@ Chain::Chain ( ) : Fl_Group( 0, 0, 100, 100, "") end(); log_create(); + + _deleting = false; } Chain::~Chain ( )