Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
delete the process at the end of the main method
[simgrid.git] / examples / cxx / explicitDestination / Forwarder.cxx
index f209d1832eb1d002326bcd5a3707f919cf7ae408..6ed093ccf9deea97de61dca654d51567b7ccb0f0 100644 (file)
@@ -56,5 +56,6 @@ int Forwarder::main(int argc, char** argv)
        \r
        cout <<"[" << getName() << ":" << getHost().getName() << "] " << "I'm done. See you!" << endl;\r
        \r
+       delete this;\r
        return 0;\r
 }
\ No newline at end of file