mirror of
https://github.com/corda/corda.git
synced 2025-01-19 11:16:54 +00:00
cleanly destroy MyProcessor to allow for creating/destroying VMs in the same process multiple times
This commit is contained in:
parent
1396551433
commit
e2f613e063
@ -8935,6 +8935,8 @@ class MyProcessor: public Processor {
|
||||
signals.unregisterHandler(SignalRegistrar::DivideByZero);
|
||||
signals.setCrashDumpDirectory(0);
|
||||
|
||||
this->~MyProcessor();
|
||||
|
||||
allocator->free(this, sizeof(*this));
|
||||
}
|
||||
|
||||
|
@ -3263,8 +3263,9 @@ class MyProcessor: public Processor {
|
||||
}
|
||||
|
||||
virtual void dispose() {
|
||||
allocator->free(this, sizeof(*this));
|
||||
signals.setCrashDumpDirectory(0);
|
||||
this->~MyProcessor();
|
||||
allocator->free(this, sizeof(*this));
|
||||
}
|
||||
|
||||
System* s;
|
||||
|
Loading…
Reference in New Issue
Block a user