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
partially plug leak. Do not see why one remains :-/
[simgrid.git]
/
src
/
s4u
/
s4u_Activity.cpp
diff --git
a/src/s4u/s4u_Activity.cpp
b/src/s4u/s4u_Activity.cpp
index
8c22f58
..
ace662e
100644
(file)
--- a/
src/s4u/s4u_Activity.cpp
+++ b/
src/s4u/s4u_Activity.cpp
@@
-76,8
+76,10
@@
Activity* Activity::cancel()
{
kernel::actor::simcall([this] {
XBT_HERE();
- pimpl_->cancel();
+ if (pimpl_)
+ pimpl_->cancel();
});
+ release_dependencies();
complete(State::CANCELED);
return this;
}