X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=kernel%2Fappli%2Fbbs2cpp%2Fbbs2cpp.cxx;h=0fd3e0c7e6a0a392dfcbc03a6b200174b0afe315;hb=19a1e7a2f298bfdfee13893f98272de4e6d0f7f2;hp=529a035dc6386d47d3a266548217444ce7784c54;hpb=05e7ead34117d7cd9946e02dfc6a4f1079630f4f;p=bbtk.git diff --git a/kernel/appli/bbs2cpp/bbs2cpp.cxx b/kernel/appli/bbs2cpp/bbs2cpp.cxx index 529a035..0fd3e0c 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,8 +21,6 @@ int main(int argc, char* argv[]) e.Print(); } - delete I; - return 0; }