From: Eduardo Davila Date: Fri, 14 Mar 2008 10:07:05 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: r0.6.1~128 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=a4fe3363034ebb3d905fc1cdbc6725539bf272a1;p=bbtk.git *** empty log message *** --- diff --git a/packages/std/src/bbstdExecBbiCommand.cxx b/packages/std/src/bbstdExecBbiCommand.cxx index feb9588..ae427d5 100755 --- a/packages/std/src/bbstdExecBbiCommand.cxx +++ b/packages/std/src/bbstdExecBbiCommand.cxx @@ -18,7 +18,8 @@ namespace bbstd { // Look for the interpreter bbtk::Interpreter* I = 0; - if (bbGetParent() != 0) + bool delete_inter = false; + if (bbGetParent() != 0) { bbtk::Factory* f = ((bbtk::ComplexBlackBoxDescriptor*)bbGetParent() ->bbGetDescriptor())->GetFactory(); @@ -32,6 +33,7 @@ namespace bbstd { // bbtkError("ExecBbiCommand::DoProcess() : could not find interpreter"); I = new bbtk::Interpreter(); + delete_inter = true; } int i; @@ -63,7 +65,7 @@ namespace bbstd } - + if (delete_inter) delete I; /* Grrr not works in windows char * pch;