X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/dd33e946a7ea1e4e00053ff43475566229f5c40a..e96187af67ea418609e2e4454afbab053b37fc2f:/src/plugins/file_system/s4u_FileSystem.cpp?ds=sidebyside diff --git a/src/plugins/file_system/s4u_FileSystem.cpp b/src/plugins/file_system/s4u_FileSystem.cpp index d89ecd0408..59574591c4 100644 --- a/src/plugins/file_system/s4u_FileSystem.cpp +++ b/src/plugins/file_system/s4u_FileSystem.cpp @@ -335,11 +335,6 @@ static void on_storage_creation(simgrid::s4u::Storage& st) st.extension_set(new FileSystemStorageExt(&st)); } -static void on_storage_destruction(simgrid::s4u::Storage& st) -{ - delete st.extension(); -} - static void on_host_creation(simgrid::s4u::Host& host) { host.extension_set(new FileDescriptorHostExt()); @@ -354,8 +349,7 @@ void sg_storage_file_system_init() if (not FileSystemStorageExt::EXTENSION_ID.valid()) { FileSystemStorageExt::EXTENSION_ID = simgrid::s4u::Storage::extension_create(); - simgrid::s4u::Storage::onCreation.connect(&on_storage_creation); - simgrid::s4u::Storage::onDestruction.connect(&on_storage_destruction); + simgrid::s4u::Storage::on_creation.connect(&on_storage_creation); } if (not FileDescriptorHostExt::EXTENSION_ID.valid()) {