X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fappli%2Fbbs2cpp%2Fbbs2cpp.cxx;h=bfddf71fef3a8a12f71276fda4ef9a90efd34f6f;hb=7df8c08153bd03b58bf320982ec5715122f12eea;hp=529a035dc6386d47d3a266548217444ce7784c54;hpb=05e7ead34117d7cd9946e02dfc6a4f1079630f4f;p=bbtk.git diff --git a/kernel/appli/bbs2cpp/bbs2cpp.cxx b/kernel/appli/bbs2cpp/bbs2cpp.cxx index 529a035..bfddf71 100644 --- a/kernel/appli/bbs2cpp/bbs2cpp.cxx +++ b/kernel/appli/bbs2cpp/bbs2cpp.cxx @@ -8,7 +8,7 @@ int main(int argc, char* argv[]) std::string file,path; file = bbtk::Utilities::ExtractScriptName(argv[1],path); file += ".h"; - bbtk::Interpreter* I = new bbtk::Interpreter(file); + bbtk::Interpreter::Pointer I = bbtk::Interpreter::New(file); I->SetThrow(true); @@ -21,10 +21,8 @@ int main(int argc, char* argv[]) e.Print(); } - delete I; - return 0; } - + // EOF