]> AND Public Git Repository - simgrid.git/blobdiff - src/kernel/resource/Resource.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Plug memory leak.
[simgrid.git] / src / kernel / resource / Resource.cpp
index b975e924c947ab84ec97dd412e5279f0f33883d2..e835455196318e4aa5d99f29728fceed19346104 100644 (file)
@@ -67,7 +67,7 @@ void Resource::set_state_profile(profile::Profile* profile)
 {
   xbt_assert(state_event_ == nullptr, "Cannot set a second state profile to %s", get_cname());
 
-  state_event_ = future_evt_set.add_trace(profile, this);
+  state_event_ = profile->schedule(&future_evt_set, this);
 }
 
 kernel::lmm::Constraint* Resource::get_constraint() const