diff --git a/src/ox/fs/filesystem.hpp b/src/ox/fs/filesystem.hpp index 800d2ebc3..42ccc78f3 100644 --- a/src/ox/fs/filesystem.hpp +++ b/src/ox/fs/filesystem.hpp @@ -214,6 +214,8 @@ uint8_t *FileSystemTemplate::format(void *buffer, typename F fs->write(INODE_ROOT_DIR, dirBuff, useDirectories); } + delete fs; + return (uint8_t*) buffer; } #ifdef _MSC_VER