Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
partially plug leak. Do not see why one remains :-/
[simgrid.git] / src / s4u / s4u_Activity.cpp
index 8c22f58..ace662e 100644 (file)
@@ -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;
 }