X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/895710d49f77179d9893bc76b3e31b69fae638af..d8232f0af88b82c158f0451e3b41ef9ec85ced02:/src/instr/jedule/jedule.cpp diff --git a/src/instr/jedule/jedule.cpp b/src/instr/jedule/jedule.cpp index 32004590fa..ddbecb0ed5 100644 --- a/src/instr/jedule/jedule.cpp +++ b/src/instr/jedule/jedule.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2010-2018. The SimGrid Team. +/* Copyright (c) 2010-2019. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -12,13 +12,6 @@ namespace simgrid{ namespace jedule { -Jedule::~Jedule() { - delete this->root_container_; - for (auto const& evt : this->event_set_) - delete evt; - this->event_set_.clear(); -} - void Jedule::add_meta_info(char* key, char* value) { xbt_assert(key != nullptr); @@ -40,12 +33,12 @@ void Jedule::write_output(FILE* file) } fprintf(file, " \n"); - this->root_container_->print(file); + this->root_container_.print(file); fprintf(file, " \n"); fprintf(file, " \n"); for (auto const& event : this->event_set_) - event->print(file); + event.print(file); fprintf(file, " \n"); fprintf(file, "\n");