mirror of
https://github.com/corda/corda.git
synced 2025-01-22 04:18:31 +00:00
Merge pull request #268 from joshuawarner32/clean-shutdown
cleanly destroy MyProcessor
This commit is contained in:
commit
6d68ae7c13
@ -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