]> Creatis software - bbtk.git/blobdiff - kernel/appli/bbs2cpp/bbs2cpp.cxx
=== MAJOR RELEASE ====
[bbtk.git] / kernel / appli / bbs2cpp / bbs2cpp.cxx
index 529a035dc6386d47d3a266548217444ce7784c54..0fd3e0c7e6a0a392dfcbc03a6b200174b0afe315 100644 (file)
@@ -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;
 }