X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/73a7fe0ba8650c65f6a7712a4e2b6c9057eac6ac..f50c785a8f726657dc3b4e32de522a7b3baca707:/src/smpi/smpi_win.cpp diff --git a/src/smpi/smpi_win.cpp b/src/smpi/smpi_win.cpp index a2c2220a3e..67612c3be2 100644 --- a/src/smpi/smpi_win.cpp +++ b/src/smpi/smpi_win.cpp @@ -59,19 +59,7 @@ Win::~Win(){ MSG_barrier_destroy(bar_); xbt_mutex_destroy(mut_); - if(!attributes_.empty()){ - int flag; - for(auto it = attributes_.begin(); it != attributes_.end(); it++){ - try{ - smpi_key_elem elem = keyvals_.at((*it).first); - if (elem != nullptr && elem->delete_fn.win_delete_fn != nullptr) - elem->delete_fn.win_delete_fn(this, (*it).first, (*it).second, &flag); - }catch(const std::out_of_range& oor) { - //already deleted, not a problem; - } - } - } - + cleanup_attr(); } void Win::get_name(char* name, int* length){