[Kernel] Add some useful asserts

This commit is contained in:
Silent
2019-11-15 23:04:08 +01:00
committed by Rick Gibbed
parent ae15c27a24
commit 5bec69e983
2 changed files with 2 additions and 0 deletions

View File

@@ -194,6 +194,7 @@ X_STATUS ObjectTable::RemoveHandle(X_HANDLE handle) {
if (entry->object) {
auto object = entry->object;
entry->object = nullptr;
assert_zero(entry->handle_ref_count);
entry->handle_ref_count = 0;
// Walk the object's handles and remove this one.