if (kv.second)
kv.second->destroy();
- /* Free the remaining data structures */
+ for (auto const& kv : mailboxes_)
+ delete kv.second;
+
+ /* Free the remaining data structures */
#if SIMGRID_HAVE_MC
xbt_dynar_free(&actors_vector_);
xbt_dynar_free(&dead_actors_vector_);
*/
void EngineImpl::run_all_actors()
{
- simix_global->context_factory->run_all();
+ simix_global->get_context_factory()->run_all();
actors_to_run_.swap(actors_that_ran_);
actors_to_run_.clear();