From: Arnaud Giersch Date: Fri, 2 Jun 2023 16:09:56 +0000 (+0200) Subject: A deleted Comm cannot be a valid iface anymore. X-Git-Tag: v3.34~74 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/3383ba76c5dc14ca45cc621ef62eec0a5258af74 A deleted Comm cannot be a valid iface anymore. --- diff --git a/src/s4u/s4u_Comm.cpp b/src/s4u/s4u_Comm.cpp index c4b8bb4870..9bd5d0f946 100644 --- a/src/s4u/s4u_Comm.cpp +++ b/src/s4u/s4u_Comm.cpp @@ -58,6 +58,8 @@ Comm::~Comm() XBT_INFO("pimpl_ is null"); xbt_backtrace_display_current(); } + if (pimpl_ != nullptr) + pimpl_->set_iface(nullptr); } void Comm::send(kernel::actor::ActorImpl* sender, const Mailbox* mbox, double task_size, double rate, void* src_buff,