X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/048946896864e915486d86c4016aeea6c987475c..0db7c964785a7e463746904785e2c9b7c7fd7963:/src/kernel/EngineImpl.cpp diff --git a/src/kernel/EngineImpl.cpp b/src/kernel/EngineImpl.cpp index 486b97b1a0..175a18aa7a 100644 --- a/src/kernel/EngineImpl.cpp +++ b/src/kernel/EngineImpl.cpp @@ -4,18 +4,25 @@ * under the terms of the license (GNU LGPL) which comes with this package. */ #include "src/kernel/EngineImpl.hpp" +#include "src/kernel/routing/NetCard.hpp" #include "src/kernel/routing/NetZoneImpl.hpp" #include +xbt_dict_t netcards_dict; + namespace simgrid { namespace kernel { EngineImpl::EngineImpl() { + netcards_dict = xbt_dict_new_homogeneous([](void* p) { + delete static_cast(p); + }); } EngineImpl::~EngineImpl() { delete netRoot_; + xbt_dict_free(&netcards_dict); } } }