A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fewer explicit news are fewer possible leaks
[simgrid.git]
/
examples
/
s4u
/
mutex
/
s4u-mutex.cpp
diff --git
a/examples/s4u/mutex/s4u-mutex.cpp
b/examples/s4u/mutex/s4u-mutex.cpp
index
2f2afd9
..
b1e3523
100644
(file)
--- a/
examples/s4u/mutex/s4u-mutex.cpp
+++ b/
examples/s4u/mutex/s4u-mutex.cpp
@@
-60,11
+60,10
@@
static void master()
int main(int argc, char **argv)
{
int main(int argc, char **argv)
{
- simgrid::s4u::Engine
*e = new simgrid::s4u::Engine(&argc,
argv);
- e
->
loadPlatform("../../platforms/two_hosts.xml");
+ simgrid::s4u::Engine
e(&argc,
argv);
+ e
.
loadPlatform("../../platforms/two_hosts.xml");
simgrid::s4u::Actor::createActor("main", simgrid::s4u::Host::by_name("Tremblay"), master);
simgrid::s4u::Actor::createActor("main", simgrid::s4u::Host::by_name("Tremblay"), master);
- e
->
run();
+ e
.
run();
- delete e;
return 0;
}
return 0;
}