mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-13 06:15:33 +00:00
Add instance_destroy back to test
This commit is contained in:
parent
fa959fa6ee
commit
6ed72a50ce
@ -39,10 +39,10 @@ int main()
|
|||||||
|
|
||||||
assert(print_str_called);
|
assert(print_str_called);
|
||||||
|
|
||||||
// TODO review import object ownership, instantiate moves it
|
|
||||||
printf("Destroy instance\n");
|
printf("Destroy instance\n");
|
||||||
//wasmer_instance_destroy(instance); // TODO error here
|
wasmer_instance_destroy(instance);
|
||||||
printf("Destroy import object\n");
|
printf("Destroy import object\n");
|
||||||
//wasmer_import_object_destroy(import_object); // TODO error here
|
//wasmer_import_object_destroy(import_object); // TODO update instantiate and try this again
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
@ -39,8 +39,8 @@ int main()
|
|||||||
assert(call_result == WASMER_CALL_OK);
|
assert(call_result == WASMER_CALL_OK);
|
||||||
|
|
||||||
printf("Destroy instance\n");
|
printf("Destroy instance\n");
|
||||||
//wasmer_instance_destroy(instance); // error here
|
wasmer_instance_destroy(instance);
|
||||||
printf("Destroy import object\n");
|
printf("Destroy import object\n");
|
||||||
//wasmer_import_object_destroy(import_object); // error here
|
//wasmer_import_object_destroy(import_object); // TODO update instantiate and try this again
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user