X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/242fde5e8077f8193db4df5f262a9672085c8d8a..66a454f0624d1c866c099e8ff4affb3b5d0aca79:/src/surf/network_interface.cpp diff --git a/src/surf/network_interface.cpp b/src/surf/network_interface.cpp index 37ee98e702..380332f276 100644 --- a/src/surf/network_interface.cpp +++ b/src/surf/network_interface.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2013-2014. The SimGrid Team. +/* Copyright (c) 2013-2015. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -79,6 +79,7 @@ Link **Link::linksList() { void Link::linksExit() { for (auto kv : *links) delete (kv.second); + delete links; } /************* * Callbacks * @@ -180,7 +181,6 @@ Link::Link(NetworkModel *model, const char *name, xbt_dict_t props) : Resource(model, name, props) , p_latEvent(NULL) { - surf_callback_emit(networkLinkCreatedCallbacks, this); links->insert({name, this}); XBT_DEBUG("Create link '%s'",name); @@ -193,7 +193,6 @@ Link::Link(NetworkModel *model, const char *name, xbt_dict_t props, : Resource(model, name, props, constraint), p_latEvent(NULL) { - surf_callback_emit(networkLinkCreatedCallbacks, this); if (state_trace) p_stateEvent = tmgr_history_add_trace(history, state_trace, 0.0, 0, this);