JS: Fix storage.virtualQuit() not freeing file handle

This commit is contained in:
Willy-JL
2024-04-05 02:21:21 +01:00
parent 41ac4180ce
commit 2f06a01f64
@@ -202,6 +202,11 @@ static void js_storage_virtual_mount(struct mjs* mjs) {
return;
}
if(storage->virtual) {
storage_file_free(storage->virtual);
storage->virtual = NULL;
}
mjs_return(mjs, MJS_UNDEFINED);
}