Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use pointers instead references.
[simgrid.git] / src / cxx / ApplicationHandler.cxx
index 9be8907..3b48213 100644 (file)
  /* ApplicationHandler member functions implementation.\r
   */  \r
 \r
-#include <ApplicationHandler.hpp>\r
 \r
 #include <Object.hpp>\r
-#include <ClassNotFoundException.hpp>\r
-#include <HostNotFoundException.hpp>\r
-#include <Host.hpp>\r
+#include <ApplicationHandler.hpp>\r
+\r
 #include <Process.hpp>\r
+#include <Host.hpp>\r
+\r
+\r
+\r
+\r
 \r
 #include <stdlib.h>\r
 \r
@@ -107,7 +110,12 @@ namespace SimGrid
                        this->properties = NULL; // TODO instanciate the dictionary\r
                        this->hostName = NULL;\r
                        this->function = NULL;\r
-               }      \r
+               } \r
+\r
+               ApplicationHandler::ProcessFactory::~ProcessFactory()\r
+               {\r
+                       xbt_dynar_free(&(this->args));\r
+               }\r
                \r
                // create the cxx process wrapper.\r
                void ApplicationHandler::ProcessFactory::createProcess() \r
@@ -178,4 +186,5 @@ namespace SimGrid
                }\r
 \r
        } // namespace Msg\r
-} // namespace SimGrid
\ No newline at end of file
+} // namespace SimGrid\r
+\r