mirror of
https://github.com/corda/corda.git
synced 2025-01-22 12:28:11 +00:00
assert heap count is empty in System::dispose()
This commit is contained in:
parent
fc78e122c0
commit
edf415102a
@ -581,6 +581,7 @@ class MySystem: public System {
|
||||
}
|
||||
|
||||
virtual void dispose() {
|
||||
assert(this, count == 0);
|
||||
pthread_mutex_destroy(&mutex);
|
||||
::free(this);
|
||||
}
|
||||
|
@ -627,6 +627,7 @@ class MySystem: public System {
|
||||
}
|
||||
|
||||
virtual void dispose() {
|
||||
assert(this, count == 0);
|
||||
CloseHandle(mutex);
|
||||
::free(this);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user