Fixed VM destruction

This commit is contained in:
SChernykh
2020-04-08 08:31:53 +02:00
parent 73cb010b5d
commit 3d5a35885e

View File

@@ -511,7 +511,8 @@ extern "C" {
machine->setDataset(dataset);
}
void randomx_destroy_vm(randomx_vm*) {
void randomx_destroy_vm(randomx_vm* vm) {
vm->~randomx_vm();
}
void randomx_calculate_hash(randomx_vm *machine, const void *input, size_t inputSize, void *output) {