From a4fe3363034ebb3d905fc1cdbc6725539bf272a1 Mon Sep 17 00:00:00 2001 From: Eduardo Davila Date: Fri, 14 Mar 2008 10:07:05 +0000 Subject: [PATCH] *** empty log message *** --- packages/std/src/bbstdExecBbiCommand.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; -- 2.47.1