assert heap count is empty in System::dispose()

This commit is contained in:
Joel Dice 2007-12-07 08:30:30 -07:00
parent fc78e122c0
commit edf415102a
2 changed files with 2 additions and 0 deletions

View File

@ -581,6 +581,7 @@ class MySystem: public System {
}
virtual void dispose() {
assert(this, count == 0);
pthread_mutex_destroy(&mutex);
::free(this);
}

View File

@ -627,6 +627,7 @@ class MySystem: public System {
}
virtual void dispose() {
assert(this, count == 0);
CloseHandle(mutex);
::free(this);
}