X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1c006a013e83828a40b76b6c652a995b5c2fa552..8a2416eb66be0d05b645e8fc3bf05285b7d0807f:/src/kernel/EngineImpl.cpp diff --git a/src/kernel/EngineImpl.cpp b/src/kernel/EngineImpl.cpp index df3b8939d0..abda1e2ded 100644 --- a/src/kernel/EngineImpl.cpp +++ b/src/kernel/EngineImpl.cpp @@ -1,12 +1,13 @@ -/* Copyright (c) 2016-2017. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2016-2018. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ #include "src/kernel/EngineImpl.hpp" +#include "simgrid/kernel/routing/NetPoint.hpp" +#include "simgrid/kernel/routing/NetZoneImpl.hpp" #include "simgrid/s4u/Host.hpp" -#include "src/kernel/routing/NetPoint.hpp" -#include "src/kernel/routing/NetZoneImpl.hpp" +#include "src/surf/StorageImpl.hpp" #include @@ -36,6 +37,10 @@ EngineImpl::~EngineImpl() delete netRoot_; for (auto const& kv : netpoints_) delete kv.second; + + for (auto const& kv : storages_) + if (kv.second) + delete kv.second->getImpl(); } } }