Merge pull request #268 from joshuawarner32/clean-shutdown

cleanly destroy MyProcessor
This commit is contained in:
Joel Dice 2014-05-20 18:30:05 -06:00
commit 6d68ae7c13
2 changed files with 4 additions and 1 deletions

View File

@ -8935,6 +8935,8 @@ class MyProcessor: public Processor {
signals.unregisterHandler(SignalRegistrar::DivideByZero);
signals.setCrashDumpDirectory(0);
this->~MyProcessor();
allocator->free(this, sizeof(*this));
}

View File

@ -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;