Minor change: reorder destroy() and deinit()

This commit is contained in:
iamgweej 2020-08-29 18:33:45 +03:00
parent 3625c996cf
commit 24a5e7c135

View file

@ -591,8 +591,8 @@ test "mount" {
// The fs that is to be mounted // The fs that is to be mounted
var testfs2 = try testInitFs(allocator); var testfs2 = try testInitFs(allocator);
defer testfs2.deinit();
defer allocator.destroy(testfs2); defer allocator.destroy(testfs2);
defer testfs2.deinit();
testfs2.instance = 2; testfs2.instance = 2;
// Create the dir to mount to // Create the dir to mount to