X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0cc099b8012d6ba3c98ca2be09ae26c8669b2f49..9c9ff09f4f5268f51f0dfdc9bdfe4cbbab99c49f:/include/simgrid/plugins/file_system.h diff --git a/include/simgrid/plugins/file_system.h b/include/simgrid/plugins/file_system.h index 5ecde650d0..c3fc6c7db2 100644 --- a/include/simgrid/plugins/file_system.h +++ b/include/simgrid/plugins/file_system.h @@ -110,7 +110,7 @@ public: static File* open(const std::string& fullpath, void* userdata); static File* open(const std::string& fullpath, const_sg_host_t host, void* userdata); - void close() { delete this; }; + void close(); /** Retrieves the path to the file */ const char* get_path() const { return fullpath_.c_str(); }